login
Positive integers n such that 5^n == 6 (mod n).
8

%I #18 Oct 18 2016 10:12:41

%S 1,15853,5520343,111966563,2232207889,5551501871

%N Positive integers n such that 5^n == 6 (mod n).

%C No other terms below 10^15. - _Max Alekseyev_, Oct 18 2016

%o (PARI) isok(n) = Mod(5, n)^n == 6; \\ _Michel Marcus_, Oct 10 2016

%Y Cf. Solutions to 5^n == k (mod n): A277348 (k=-6), A015891 (k=-5), A123047 (k=-4), A123052 (k=-3), A123062 (k=-2), A015951 (k=-1), A067946 (k=1), A124246 (k=2), A123061 (k=3), A125949 (k=4), A123091 (k=5), this sequence (k=6).

%K nonn,hard,more

%O 1,2

%A _Seiichi Manyama_, Oct 10 2016