OFFSET
1,2
LINKS
Hans Havermann, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A294338(2^n). - R. J. Mathar, Nov 27 2017
EXAMPLE
The a(6) = 6 ways are 64, 8^2, (2^3)^2, 4^3, (2^2)^3, 2^6.
MAPLE
f:= proc(n) option remember; local F, t, s, g, a;
F:= ifactors(n)[2];
g:= igcd(op(map(t -> t[2], F)));
t:= 1;
for s in numtheory:-divisors(g) minus {1} do
t:= t + procname(mul(a[1]^(a[2]/s), a=F))*procname(s)
od;
t
end proc:
seq(f(2^n), n=1..100); # Robert Israel, Dec 01 2017
MATHEMATICA
a[n_]:=1+Sum[a[n^(1/g)]*a[g], {g, Rest[Divisors[GCD@@FactorInteger[n][[All, 2]]]]}];
Table[a[2^n], {n, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Oct 28 2017
STATUS
approved