OFFSET
1,2
COMMENTS
For primes p, elements of A000040, a(p) = A000030(p). The cumulative sum of this sequence is A112265. Primes in the cumulative sum are A112266. This is a base 10 sequence, the base 1 equivalent is A001222(n) = BigOmega(n) = e_1 + e_2 + ... + e_k, the number of prime factors (with multiplicity), where k = A001221(n) = SmallOmega(n). The base 2 equivalent is equal to the base 1 equivalent.
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
Eric Weisstein's World of Mathematics, Prime Factor
Eric Weisstein's World of Mathematics, Distinct Prime Factors
FORMULA
EXAMPLE
a(4) = 4 because 4 = 2*2, so the sum of the initial digits is 2 + 2 = 4.
a(11) = 1 because 11 is prime and its initial digit is 1.
a(22) = 3 because 22 = 2*11, so the sum of the initial digits is 2 + 1 = 3.
a(98) = 16 because 98 = 2 * 7^2, so the sum of the initial digits is 2 + 7 + 7 = 16.
a(100) = 14 because 100 = 2^2 * 5^2, so the sum of the initial digits is 2 + 2 + 5 + 5 = 14.
a(121) = 2 because 121 = 11^2, so the sum of the initial digits is 1 + 1 = 2.
a(361) = 2 because 361 = 19^2, so the sum of the initial digits is 1 + 1 = 2.
MATHEMATICA
f[1] = 0; f[n_] := Plus @@ (#[[2]] First@IntegerDigits[#[[1]]] & /@ FactorInteger[n]); Array[f, 94] (* Giovanni Resta, Jun 17 2016 *)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Jonathan Vos Post, Aug 30 2005
EXTENSIONS
a(6) and a(35) corrected by Giovanni Resta, Jun 17 2016
STATUS
approved