Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A117757
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A117757 Number of primes between 4^n and 4^(n+1). +0
1
2, 4, 12, 36, 118, 392, 1336, 4642, 16458, 59025, 213922, 781924, 2879938, 10673034, 39769185, 148880193, 559658890, 2111459404, 7991867657, 30336822624, 115457945437, 440455347499, 1683882372217 (list; graph; listen)
OFFSET

0,1

EXAMPLE

a(1) = 4 since the primes 5, 7, 11, and 13 lie between 4 and 16.

MAPLE

a:=proc(n) local ct, j: ct:=0: for j from 4^n to 4^(n+1) do if isprime(j)=true then ct:=ct+1 else fi: ct: od: end: seq(a(n), n=0..8); # execution takes hours - Emeric Deutsch (deutsch(AT)duke.poly.edu), Apr 16 2006

PROGRAM

(C) #include <stdio.h> #include <inttypes.h> int main (void) { int64_t n1=1; int64_t n2=1; int i; int64_t sum=0, next; printf("%lld, %lld, ", n1, n2); for (i=0; i<12; i++) { next=n1*n2-sum; sum+=n1; n1=n2; n2=next; printf("%lld, ", n2); } }

(PARI) { for(n=0, 30, istrt=4^n ; iend=istrt*4 ; resul=0 ; forprime(p=istrt+1, iend, resul++ ; ) ; print1(resul, ", ") ; ) ; } - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Apr 21 2006

CROSSREFS

Cf. A036378.

Sequence in context: A025579 A010552 A054542 this_sequence A009623 A123071 A048116

Adjacent sequences: A117754 A117755 A117756 this_sequence A117758 A117759 A117760

KEYWORD

nonn

AUTHOR

Greg Huber (huber(AT)alum.mit.edu), Apr 14 2006

EXTENSIONS

More terms from Brian Kuehn (brk158(AT)psu.edu), Apr 19 2006

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 August 29 17:54 EDT 2008. Contains 143238 sequences.


AT&T Labs Research