login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A080086 Number of factors of 3 in the factorial of the n-th prime, counted with multiplicity. 4
0, 1, 1, 2, 4, 5, 6, 8, 9, 13, 14, 17, 18, 19, 21, 23, 27, 28, 31, 32, 34, 36, 40, 42, 46, 48, 49, 50, 53, 54, 61, 62, 66, 67, 71, 72, 75, 80, 81, 84, 86, 88, 93, 94, 95, 97, 102, 108, 110, 111, 112, 115, 116, 123, 126, 129, 131, 134, 136, 138, 139, 143, 151, 152, 153 (list; graph; refs; listen; history; internal format)
OFFSET

1,4

FORMULA

a(n) = sum_{k=1..L} floor( p_n /3^k ), where L = ln(p_n)/ln(3), where p_n is the n-th prime.

MATHEMATICA

lst={}; Do[p=Prime[n]; s=0; While[p>1, p=IntegerPart[p/3]; s+=p; ]; AppendTo[lst, s], {n, 5!}]; lst [From Vladimir Orlovsky (4vladimir(AT)gmail.com), Jul 28 2009]

CROSSREFS

Cf. A080084, A080085, A080087.

Sequence in context: A188080 A048262 A030326 * A015844 A114318 A169956

Adjacent sequences:  A080083 A080084 A080085 * A080087 A080088 A080089

KEYWORD

nonn

AUTHOR

Paul D. Hanna (pauldhanna(AT)juno.com), Jan 26 2003

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 13:35 EST 2012. Contains 205802 sequences.