OFFSET
1,6
COMMENTS
Conjecture: For n >= 20, a(n) = a(n-1)*A284600(a(n-1)/gcd(a(n-1),n)). - Charlie Neder, Jun 10 2019
LINKS
ACM ICPC World Finals 2019, Problem K: Traffic Blights (see p. 8, using n=100 and n=200 as examples).
MATHEMATICA
PROG
(PARI) ispp(k) = (k==1) || isprimepower(k);
isok(k, n) = {for (i=1, n, if (! ispp(i/gcd(i, k)), return (0); )); return (1); }
a(n) = my(k=1); while (! isok(k, n), k++); k; \\ Michel Marcus, Jun 11 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Jack Zhang, Apr 18 2019
STATUS
approved