login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A073780 Number of 1's in base 3 representation of n-th prime. 3

%I #13 Feb 23 2015 09:20:49

%S 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,

%T 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,

%U 3,3,3,3,5,5,3,3,3,3,3,3,3,3,1,3,3,3,3,3

%N Number of 1's in base 3 representation of n-th prime.

%H Harvey P. Dale, <a href="/A073780/b073780.txt">Table of n, a(n) for n = 1..1000</a>

%F a(n) = A062756(A000040(n)). - _Michel Marcus_, Oct 02 2013

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

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

%t Table[DigitCount[n,3,1],{n,Prime[Range[100]]}] (* _Harvey P. Dale_, Feb 23 2015 *)

%Y Cf. A073779, A073781.

%K base,easy,nonn

%O 1,6

%A _Zak Seidov_ Aug 11 2002

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 5 16:13 EDT 2024. Contains 374024 sequences. (Running on oeis4.)