Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A073780
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A073780 Number of 1's in base 3 representation of n-th prime. +0
3
0, 1, 1, 1, 1, 3, 1, 1, 1, 1, 3, 3, 3, 3, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 3, 1, 3, 1, 3, 3, 3, 3, 1, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 3, 1, 3, 3, 1, 1, 3, 1, 1, 1, 1, 3, 1, 1, 3, 3, 3, 5, 3, 3, 3, 3, 1, 3, 5, 3, 3, 3, 3, 5, 5, 3, 3, 3, 3, 3, 3, 3, 3, 1, 3, 3, 3, 3, 3 (list; graph; listen)
OFFSET

1,6

FORMULA

a1[n_] := Length[Cases[IntegerDigits[Prime[n], 3], 1]]

EXAMPLE

a1(11)=3 as 11th prime, 31, is 1011 in base 3 representation

MATHEMATICA

a1[n_] := Length[Cases[IntegerDigits[Prime[n], 3], 1]]

CROSSREFS

Cf. A073779, A073781.

Sequence in context: A049639 A046555 A029382 this_sequence A124389 A027023 A052371

Adjacent sequences: A073777 A073778 A073779 this_sequence A073781 A073782 A073783

KEYWORD

base,easy,nonn

AUTHOR

Zak Seidov (zakseidov(AT)yahoo.com) Aug 11 2002

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 23 17:09 EST 2009. Contains 167438 sequences.


AT&T Labs Research