OFFSET
1,2
COMMENTS
a(n) is the smallest positive integer such that n divides lcm(a(1), a(2), a(3), ..., a(n)), for all positive integers n. - Leroy Quet, May 01 2007
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
FORMULA
MATHEMATICA
A100994[1]:=1; A100994[n_] := (n-1)*(Floor[1/PrimeNu[n]])+1; Array[A100994, 100] (* Enrique Pérez Herrero, Sep 24 2011 *)
a[n_] := If[PrimePowerQ[n], n, 1];
Array[a, 100] (* Jean-François Alcover, Mar 26 2020 *)
PROG
(PARI) a(n) = if (isprimepower(n), n, 1); \\ Michel Marcus, Mar 18 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Nov 26 2004
EXTENSIONS
Definition edited to remove ambiguity by Daniel Forgues, Aug 18 2009
STATUS
approved