OFFSET
1,6
COMMENTS
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
FORMULA
For prime power n = p^m, m > 0, a(p^m) >= 1.
EXAMPLE
Table of n, a(n), s(n) for select n:
n a(n) s(n) k such that t(k) = s(n).
-----------------------------------------------
1 1 1 {1}
2 1 4 {4}
3 1 8 {8}
4 1 9 {9}
5 1 16 {16}
6 2 25 {6, 25}
9 0 36 -
13 1 100 {21}
15 3 125 {12, 18, 125}
20 0 216 -
23 3 256 {39, 55, 256}
34 5 625 {24, 36, 46, 54, 625}
78 6 3600 {371, 611, 731, 779, 851, 899}
.
a(6) = 2 since 6 = 2^1*3^1, thus t(6) = (2+3)^(1+1) = s(6) = 5^2 = 25, and t(25) = s(6) = 5^2 = 25.
a(9) = 0 since s(9) = 36 = 6^2, but 6 is not a sum of 2 distinct primes.
a(13) = 1 since for s(13) = 100 and k <= 100, there exists only 1 number t(k) = 100, and that k = 21 = 3*7; (3+7)^(1+1) = 100.
a(15) = 3 since for k <= 125, we have t(k) = 125 for k = {12, 18, 125}; 12 = 2^2*3 and t(12) = (2+3)^(2+1), 18 = 2*3^2 and t(18) = (2+3)^(1+2), and 125 = 5^3 and t(125) = 5^3.
a(23) = 3 since for k <= 256, we have t(k) = 256 for k = {39, 55, 256}; 39 = 3*13 and t(39) = (3+13)^(1+1), 55 = 5*11 and t(256) = (5+11)^(1+1), and 256 = 2^8 and t(256) = 2^8, etc.
MATHEMATICA
nn = 5000; s = {1}~Join~Union@ Flatten[Table[k^m, {m, 2, Log2[nn]}, {k, 2, Surd[nn, m] } ] ]; Block[{c}, c[_] := 0; c[1] = 1; Do[If[CompositeQ[n], If[# <= nn, c[#]++] &[Power @@ Total@ FactorInteger[n] ] ], {n, nn}]; Table[c[s[[n]] ], {n, LengthWhile[s, # <= nn &] } ] ]
CROSSREFS
KEYWORD
nonn
AUTHOR
Michael De Vlieger, Apr 19 2026
STATUS
approved
