OFFSET
1,4
COMMENTS
The first composite n with a(n) = 1 is n = 521^2 = 271441. See comments in A001608.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
MATHEMATICA
p[1] = 0; p[2] = 2; p[3] = 3; p[n_] := p[n] = p[n - 2] + p[n - 3]; a[n_] := n/GCD[p[n], n]; Array[a, 100] (* Amiram Eldar, Nov 22 2021 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Nov 22 2021
STATUS
approved