OFFSET
1,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[Range[5500], Mod[PowerMod[10, #, #] +PowerMod[5, #, #], #]==0 &] (* G. C. Greubel, Dec 12 2022 *)
PROG
(Magma) [n: n in [1..5500] | (Modexp(10, n, n) + Modexp(5, n, n)) mod n eq 0 ]; // G. C. Greubel, Dec 12 2022
(SageMath) [n for n in (1..5500) if (power_mod(10, n, n)+power_mod(5, n, n))%n==0 ] # G. C. Greubel, Dec 12 2022
(PARI) is(n)=(Mod(10, n)^n+Mod(5, n)^n==0);
for(n=1, 5500, if(is(n), print1(n, ", "))); \\ Joerg Arndt, Dec 13 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved