OFFSET
0,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000
EXAMPLE
105*A000079 is 105, 210, 420, 840, 1680, 3360, ... and there are 15 distinct factorizations of 210 so a(1) = 15.
a(0) = 5: 105*2^0 = 105 = 3*5*7 = 3*35 = 5*21 = 7*15. - Alois P. Heinz, May 26 2013
MAPLE
with(numtheory):
b:= proc(n, k) option remember;
`if`(n>k, 0, 1) +`if`(isprime(n), 0,
add(`if`(d>k, 0, b(n/d, d)), d=divisors(n) minus {1, n}))
end:
a:= n-> b((105*2^n)$2):
seq(a(n), n=0..50); # Alois P. Heinz, May 26 2013
MATHEMATICA
b[n_, k_] := b[n, k] = If[n > k, 0, 1] + If[PrimeQ[n], 0,
Sum[If[d > k, 0, b[n/d, d]], {d, Divisors[n][[2;; -2]]}]];
a[n_] := b[105*2^n, 105*2^n];
Table[a[n], {n, 0, 50}] (* Jean-François Alcover, Jul 15 2021, after Alois P. Heinz *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Alford Arnold, May 19 2004
EXTENSIONS
2 more terms from Alford Arnold, Aug 29 2007
Corrected offset and extended beyond a(7) by Alois P. Heinz, May 26 2013
STATUS
approved