OFFSET
1,1
COMMENTS
Nonprimitive terms can occur only for radicals of the form 2*q, where q is an odd prime.
LINKS
Felix Huber, Table of n, a(n) for n = 1..10000
EXAMPLE
MAPLE
b := proc(l)
local c, f, i, m, p, r, x;
p := sort(l); r := nops(p);
f := (q, e) -> (q^(e + 1) - 1)/(q^e*(q - 1));
x := mul(p[i]/(p[i] - 1), i = 1 .. r);
m := [seq(max(1, ceil(log(1/(1 - 2/x))/log(p[i]))), i = 1 .. r)];
c := proc(k, u, v, g)
local e, i, t, w;
if k > r then if u > 2 then return v else return infinity end if end if;
t := g;
for e to m[k] do
w := v*p[k]^e;
if w >= t then break end if;
i := c(k + 1, u*f(p[k], e), w, t);
if i < t then t := i end if;
end do;
t;
end proc;
c(1, 1, 1, infinity)
end proc:
A395271 := proc(n) option remember;
global t; local r;
r := A395270(n);
b(t[r]);
end proc:
seq(A395271(n), n = 1 .. 50);
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Felix Huber, May 12 2026
STATUS
approved
