OFFSET
1,2
COMMENTS
After a(1), all the terms are multiples of 3.
From Robert Israel, Sep 18 2017: (Start)
All terms are odd.
If m and n are terms then lcm(m,n) is a term.
If n is a term not divisible by 9, then 3n is a term. (End)
EXAMPLE
3 appears is a term because 3^2 divides (17^3 + 1): 4914/9 = 546.
9 appears is a term because 9^2 divides (17^9 + 1): 118587876498/81 = 1464047858.
MAPLE
MATHEMATICA
Select[Range[50000], IntegerQ[(PowerMod[17, #, #^2] + 1)/#^2] &]
PROG
(PARI) for(n=1, 5e6, if (Mod(17, n^2)^n==-1, print1(n, ", ")));
(PARI) is(n) = Mod(17, n^2)^n==-1 \\ Felix Fröhlich, Sep 16 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
K. D. Bajpai, Sep 15 2017
STATUS
approved