OFFSET
1,1
COMMENTS
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000
FORMULA
Let b(n)=A046790(n). Let k=k(n) be the greatest number whose square divides b(n) and is such that b(n) and b(n)/k^2 are of the same parity. Then a(n) = b(n)/k^2. - Vladimir Shevelev, Jun 07 2016
Or, equivalently, a(n) is the squarefree part s(n) of b(n), if either b(n) is odd or s(n) is even. Otherwise, when b(n) is even, but s(n) is odd, a(n)=4*s(n). - David A. Corneth, Jun 07 2016
EXAMPLE
From Vladimir Shevelev, Jun 07 2016: (Start)
A046790(5)=24 with even squarefree part (6), so a(5) = 6;
A046790(12)=48 with odd squarefree part (3), so a(12) = 3*4=12.
(End)
PROG
(PARI) a(n) = my(n=A046790(n), f=factor(n), p=n%2); f[, 2]=f[, 2]%2; r=prod(i=1, matsize(f)[1], f[i, 1]^f[i, 2]); r*=(4^(n%2==0&&r%2==1)) \\ David A. Corneth, Jun 07 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
David W. Wilson, Dec 11 1999
EXTENSIONS
Entry revised by N. J. A. Sloane, with help from Don Reble and several OEIS editors. Jun 07 2016
STATUS
approved