OFFSET
1,2
COMMENTS
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
3 is a term because 1^2 + 2^2 + 5^2 = 30 is divisible by 3.
5 is a term because 1^2 + 2^2 + 5^2 + 12^2 + 29^2 = 1015 is divisible by 5.
13 is a term because A084158(13) = 1351523251 is divisible by 13.
MATHEMATICA
nn = 500; s = LinearRecurrence[{5, 5, -1}, {0, 1, 5}, nn + 1]; Select[Range@ nn, Divisible[s[[# + 1]], #] &] (* Michael De Vlieger, Mar 23 2016, after Harvey P. Dale at A270699 *)
PROG
(PARI) is(n)=(Mod([0, 1, 0; 0, 0, 1; -1, 5, 5], n)^n*[0; 1; 5])[1, 1]==0 \\ Charles R Greathouse IV, Mar 21 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Altug Alkan, Mar 21 2016
STATUS
approved