- 注册时间
- 2009-2-12
- 最后登录
- 1970-1-1
- 威望
- 星
- 金币
- 枚
- 贡献
- 分
- 经验
- 点
- 鲜花
- 朵
- 魅力
- 点
- 上传
- 次
- 下载
- 次
- 积分
- 22691
- 在线时间
- 小时
|
发表于 2011-12-18 01:03:10
|
显示全部楼层
惭愧,把问题想复杂了,其实这样更快:- Select[Table[{T, tmp = Position[Table[Mod[28*5^ii, T], {ii, T}], 1]; If[Length[tmp] > 0, Quiet[tmp[[1,1]]], 0]}, {T, 1, 2000, 2}], #[[2]] > 0 &]
复制代码 {3, 2}
{9, 6}
{17, 5}
{19, 4}
{23, 21}
{27, 18}
{29, 7}
{37, 22}
{43, 25}
{47, 24}
{53, 24}
{57, 4}
{59, 16}
{73, 23}
{81, 18}
{83, 30}
{97, 93}
{103, 10}
{107, 87}
{111, 22}
{113, 32}
{131, 12}
{137, 30}
{139, 1}
{141, 24}
{149, 10}
{157, 39}
{159, 24}
{163, 49}
{167, 134}
{173, 121}
{177, 16}
{193, 20}
{197, 60}
{199, 29}
{223, 36}
{227, 68}
{233, 2}
{243, 18}
{249, 30}
{257, 141}
{263, 65}
{271, 18}
{277, 236}
{281, 45}
{283, 110}
{289, 101}
{293, 257}
{307, 4}
{309, 10}
{311, 56}
{317, 44}
{323, 85}
{339, 32}
{347, 275}
{353, 321}
{361, 76}
{373, 340}
{383, 298}
{391, 21}
{393, 12}
{397, 373}
{411, 30}
{417, 70}
{419, 195}
{421, 44}
{423, 24}
{433, 343}
{437, 175}
{439, 114}
{443, 397}
{447, 10}
{463, 305}
{467, 110}
{477, 24}
{479, 68}
{493, 21}
{501, 134}
{503, 12}
{523, 8}
{529, 483}
{531, 132}
{541, 55}
{547, 399}
{551, 49}
{557, 120}
{563, 468}
{577, 371}
{579, 20}
{587, 550}
{591, 60}
{593, 451}
{597, 62}
{607, 158}
{613, 270}
{617, 18}
{619, 35}
{647, 192}
{653, 322}
{667, 21}
{669, 36}
{673, 494}
{677, 575}
{681, 68}
{683, 665}
{699, 2}
{701, 177}
{703, 22}
{709, 57}
{719, 202}
{727, 386}
{729, 342}
{731, 277}
{743, 517}
{747, 30}
{757, 630}
{773, 111}
{787, 636}
{797, 417}
{809, 302}
{811, 339}
{813, 18}
{817, 67}
{821, 90}
{823, 239}
{831, 236}
{839, 341}
{841, 273}
{849, 110}
{857, 655}
{859, 240}
{863, 633}
{877, 534}
{887, 54}
{893, 346}
{907, 223}
{921, 4}
{933, 56}
{937, 149}
{947, 595}
{951, 44}
{953, 808}
{967, 151}
{971, 170}
{977, 574}
{983, 516}
{989, 109}
{1003, 277}
{1007, 76}
{1009, 464}
{1013, 141}
{1017, 144}
{1033, 238}
{1063, 18}
{1083, 76}
{1091, 68}
{1093, 190}
{1097, 327}
{1103, 803}
{1117, 44}
{1119, 340}
{1121, 103}
{1149, 298}
{1151, 213}
{1153, 865}
{1163, 845}
{1179, 12}
{1187, 1149}
{1193, 363}
{1201, 383}
{1213, 1002}
{1217, 421}
{1223, 674}
{1229, 114}
{1231, 568}
{1233, 30}
{1237, 285}
{1257, 404}
{1259, 394}
{1263, 44}
{1269, 162}
{1277, 645}
{1279, 537}
{1283, 275}
{1289, 286}
{1291, 143}
{1303, 13}
{1307, 980}
{1317, 114}
{1319, 27}
{1327, 363}
{1341, 84}
{1357, 219}
{1367, 379}
{1369, 166}
{1373, 1002}
{1381, 473}
{1399, 191}
{1401, 110}
{1409, 174}
{1423, 231}
{1427, 826}
{1431, 180}
{1433, 369}
{1437, 68}
{1459, 205}
{1481, 160}
{1483, 532}
{1487, 72}
{1493, 1312}
{1503, 300}
{1509, 12}
{1511, 558}
{1523, 627}
{1543, 808}
{1553, 135}
{1559, 29}
{1567, 926}
{1569, 8}
{1571, 51}
{1577, 112}
{1583, 267}
{1593, 306}
{1607, 1587}
{1613, 1219}
{1623, 190}
{1637, 731}
{1657, 291}
{1663, 1261}
{1667, 1655}
{1671, 120}
{1679, 527}
{1689, 468}
{1693, 479}
{1697, 1323}
{1709, 776}
{1711, 161}
{1723, 563}
{1733, 1726}
{1739, 346}
{1747, 129}
{1761, 550}
{1773, 60}
{1777, 69}
{1787, 861}
{1789, 484}
{1801, 470}
{1811, 150}
{1819, 405}
{1821, 158}
{1823, 474}
{1839, 270}
{1847, 1318}
{1849, 67}
{1851, 18}
{1857, 344}
{1867, 70}
{1877, 1552}
{1879, 841}
{1907, 568}
{1913, 1314}
{1931, 329}
{1933, 536}
{1941, 192}
{1951, 725}
{1957, 112}
{1959, 322}
{1979, 482}
{1987, 1540}
{1993, 753}
{1997, 1270} |
|