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!)
A239690 Base 4 sum of digits of prime(n). 7

%I #20 Mar 04 2023 04:25:38

%S 2,3,2,4,5,4,2,4,5,5,7,4,5,7,8,5,8,7,4,5,4,7,5,5,4,5,7,8,7,5,10,5,5,7,

%T 5,7,7,7,8,8,8,7,11,4,5,7,7,10,8,7,8,11,7,11,2,5,5,7,4,5,7,5,7,8,7,8,

%U 7,4,8,7,5,8,10,7,10,11,5,7,5,7,8,7,11,7

%N Base 4 sum of digits of prime(n).

%C a(n) is the rank of prime(n) in the base-4 dominance order on the natural numbers.

%H Vincenzo Librandi, <a href="/A239690/b239690.txt">Table of n, a(n) for n = 1..10000</a>

%H Tyler Ball and Daniel Juda, <a href="https://scholar.rose-hulman.edu/rhumj/vol14/iss2/2">Dominance over N</a>, Rose-Hulman Undergraduate Mathematics Journal, Vol. 13, No. 2, Fall 2013.

%F a(n) = A053737(A000040(n)).

%e The sixth prime is 13, 13 in base 4 is (3,1) so a(6)=3+1=4.

%t Table[Plus @@ IntegerDigits[Prime[n], 4], {n, 1, 100}] (* _Vincenzo Librandi_, Mar 25 2014 *)

%o (Sage) [sum(i.digits(base=4)) for i in primes_first_n(200)]

%o (Magma) [&+Intseq(NthPrime(n),4): n in [1..100]]; // _Vincenzo Librandi_, Mar 25 2014

%o (Haskell)

%o a239690 = a053737 . a000040 -- _Reinhard Zumkeller_, Mar 20 2015

%Y Cf. A007605, A014499, A053737, A239619.

%Y Cf. A000040, A007090.

%K nonn,base,hear

%O 1,1

%A _Tom Edgar_, Mar 24 2014

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 April 25 09:08 EDT 2024. Contains 371964 sequences. (Running on oeis4.)