|
|
A308427
|
|
a(n) is the number of central factorizations needed to reach the prime factorization of n.
|
|
4
|
|
|
0, 0, 0, 1, 0, 1, 0, 2, 1, 1, 0, 2, 0, 1, 1, 2, 0, 2, 0, 2, 1, 1, 0, 2, 1, 1, 2, 2, 0, 2, 0, 3, 1, 1, 1, 2, 0, 1, 1, 3, 0, 2, 0, 2, 2, 1, 0, 3, 1, 2, 1, 2, 0, 2, 1, 3, 1, 1, 0, 2, 0, 1, 2, 3, 1, 2, 0, 2, 1, 2, 0, 3, 0, 1, 2, 2, 1, 2, 0, 3, 2, 1, 0, 3, 1, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,8
|
|
COMMENTS
|
The central factorization of a positive integer m is m*(n/m), where m is the greatest divisor of n that is <= sqrt(n).
|
|
LINKS
|
|
|
EXAMPLE
|
32 = 4*8 = (2*2)*(2*4) = (2*2)*(2*(2*2)), so that a(32) = 3.
|
|
MATHEMATICA
|
f[n_] := Last[Select[Divisors[n], # <= Sqrt[n] &]];
a[1] = 0; a[2] = 0; a[n_] := If[f[n] == 1, 0, 1 + Max[a[f[n]], a[n/f[n]]]];
Table[a[n], {n, 1, 60}]
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|