login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo

Please make a donation to keep the OEIS running. We are now in our 56th year. In the past year we added 10000 new sequences and reached almost 9000 citations (which often say "discovered thanks to the OEIS").
Other ways to donate

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A064372 Additive function a(n) defined by the recursive formula a(1)=1 and a(p^k)=a(k) for any prime p. 13
1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 2, 1, 2, 2, 1, 1, 2, 1, 2, 2, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 1, 2, 2, 2, 2, 1, 2, 2, 2, 1, 3, 1, 2, 2, 2, 1, 2, 1, 2, 2, 2, 1, 2, 2, 2, 2, 2, 1, 3, 1, 2, 2, 2, 2, 3, 1, 2, 2, 3, 1, 2, 1, 2, 2, 2, 2, 3, 1, 2, 1, 2, 1, 3, 2, 2, 2, 2, 1, 3, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 1, 3, 1, 2, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,6

COMMENTS

That is, if i, j, k, ... are relatively prime, then a(i*j*k*...) = a(i)+a(j)+a(k)+... - N. J. A. Sloane, Nov 20 2007

Starts almost the same as A001221 (the number of distinct primes dividing n): the first twelve terms which are different are a(1), a(64), a(192), a(320), a(448), a(576), a(704), a(729), a(832), a(960), a(1024) and a(1088), since the first non-unitary values of n are a(6) and(10). - Henry Bottomley, Sep 23 2002

a(A164336(n)) = 1. - Reinhard Zumkeller, Aug 27 2011

LINKS

T. D. Noe, Table of n, a(n) for n=1..10000

Index entries for sequences computed from exponents in factorization of n

FORMULA

a(n) = A106491(n) - A106490(n) = A106495(A106444(n)). - Antti Karttunen, May 09 2005

a(1) = 1, a(n) = sum(k=1..A001221(n), a(A124010(n,k)) ) for n > 1. - Reinhard Zumkeller, Aug 27 2011

EXAMPLE

a(30) = a(5^1 * 3^1 * 2^1) = a(1) + a(1) + a(1) = 3.

MAPLE

a:= proc(n) option remember; `if`(n=1, 1,

      add(a(i[2]), i=ifactors(n)[2]))

    end:

seq(a(n), n=1..120);  # Alois P. Heinz, Aug 23 2020

MATHEMATICA

a[1] = 1; a[n_] := a[n] = Plus @@ a /@ FactorInteger[n][[All, 2]]; Table[a[n], {n, 1, 105}] (* Jean-François Alcover, Sep 19 2012 *)

PROG

(Haskell)

a064372 1 = 1

a064372 n = sum $ map a064372 $ a124010_row n

-- Reinhard Zumkeller, Aug 27 2011

CROSSREFS

Cf. A001221, A079553, A106444, A106490, A106491, A106495, A124010.

Sequence in context: A087802 A079553 A001221 * A096825 A318369 A007875

Adjacent sequences:  A064369 A064370 A064371 * A064373 A064374 A064375

KEYWORD

nonn,easy,nice

AUTHOR

Steven Finch, Sep 26 2001

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 5 17:57 EST 2020. Contains 338962 sequences. (Running on oeis4.)