OFFSET
1,2
COMMENTS
Numbers k such that k | A000172(k).
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..345
FORMULA
MATHEMATICA
seq[kmax_] := Module[{f0 = 1, f1 = 2, f2, s = {1}}, Do[f2 = ((7*k^2 - 7*k + 2)*f1 + 8*(k-1)^2*f0)/k^2; If[Divisible[f2, k], AppendTo[s, k]]; f0 = f1; f1 = f2, {k, 2, kmax}]; s]; seq[5000]
PROG
(PARI) lista(kmax) = {my(f0 = 1, f1 = 2, f2); print1("1, "); for(k = 2, kmax, f2 = ((7*k^2 - 7*k + 2)*f1 + 8*(k-1)^2*f0)/k^2; if(!(f2 % k), print1(k, ", ")); f0 = f1; f1 = f2); }
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, May 17 2024
STATUS
approved