OFFSET
1,6
COMMENTS
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
FORMULA
A010055(n) = 0^(a(n)-1). - Reinhard Zumkeller, May 13 2006
MATHEMATICA
Join[{1}, Table[Which[PrimePowerQ[n], 1, True, FactorInteger[n][[2, 1]]], {n, 2, 100}]] (* Harvey P. Dale, Feb 08 2020 *)
PROG
(PARI) a(n) = if (isprimepower(n) || (n==1), 1, my(f=factor(n)[, 1]); f[2]); \\ Michel Marcus, Mar 01 2023
(Python)
from sympy import primefactors
def A119288(n): return 1 if len(s:=primefactors(n)) <= 1 else sorted(s)[1] # Chai Wah Wu, Mar 31 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, May 13 2006
EXTENSIONS
Name changed by Antti Karttunen, Oct 04 2017
STATUS
approved