OFFSET
1,2
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
MATHEMATICA
s[n_] := Module[{f = FactorInteger[n], e}, e = f[[;; , 2]]; If[AllTrue[e, # == 2^IntegerExponent[#, 2] &], Times @@ (1 + Power @@@ f), Nothing]]; s[1] = 1; Array[s, 100]
PROG
(PARI) lista(max) = for(k = 1, max, my(f = factor(k), e = f[, 2], is = 1); for(i = 1, #e, if(e[i] >> valuation(e[i], 2) > 1, is = 0; break)); if(is, print1(prod(i = 1, #e, 1 + f[i, 1]^e[i]), ", ")));
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, Oct 12 2023
STATUS
approved