A125773 Numbers k that are not powers of 2 such that 2^k mod k = 2^k mod k^2; or A068535 with powers of 2 excluded.
35, 297, 1093, 2186, 2590, 3279, 3511, 4372, 5465, 6558, 7022, 7651, 8744, 9837, 10533, 10930, 13116, 14044, 14209, 21066, 23175, 24012, 24577, 26592, 28088, 31599, 35110, 38621, 42132, 49154, 987704, 3020871, 3074592, 18368834, 22655923, 105713883, 111503202, 1084277175
Offset: 1
Keywords
Crossrefs
Programs
-
Mathematica
Do[f=PowerMod[2,n,n];g=PowerMod[2,n,n^2];If[f==g&&!IntegerQ[Log[2,n]],Print[n]],{n,1,6000000}]
Extensions
More terms from Amiram Eldar, Jun 19 2022
Comments