Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A066888
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A066888 Write the numbers 1, 2, ... in a triangle with n terms in the n-th row; a(n) = number of primes in n-th row. +0
7
0, 2, 1, 1, 2, 2, 1, 2, 3, 2, 2, 3, 3, 3, 3, 2, 4, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 4, 5, 3, 6, 6, 7, 5, 5, 6, 4, 8, 5, 6, 6, 8, 6, 8, 5, 7, 5, 11, 4, 6, 9, 7, 8, 9, 8, 7, 7, 9, 7, 8, 7, 12, 5, 9, 9, 11, 9, 7, 7, 12, 10, 10, 9, 9, 9, 6, 11, 10, 11, 9, 12, 11, 12, 9, 10, 11, 12, 10, 13, 9, 11, 10, 12 (list; graph; listen)
OFFSET

1,2

LINKS

T. D. Noe, Table of n, a(n) for n=1..1001

FORMULA

a(n) = pi(n*(n+1)/2)-pi(n*(n-1)/2).

EXAMPLE

Triangle begins

1 (0 primes)

2 3 (2 primes)

4 5 6 (1 prime)

7 8 9 10 (1 prime)

11 12 13 14 15 (2 primes)

PROGRAM

(PARI) { tp(m)=local(r, t); r=1; for(n=1, m, t=0; for(k=r, n+r-1, if(isprime(k), t++)); print1(t", "); r=n+r; ) }

(PARI) {tpf(m)=local(r, t); r=1; for(n=1, m, t=0; for(k=r, n+r-1, if(isprime(k), t++); print1(k" ")); print1(" ("t" prime)"); print(); r=n+r; ) }

CROSSREFS

Cf. A083382.

Essentially the same as A065382 and A090970.

Sequence in context: A109705 A025848 A065382 this_sequence A029313 A144001 A124233

Adjacent sequences: A066885 A066886 A066887 this_sequence A066889 A066890 A066891

KEYWORD

nonn,easy

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com), Jun 06 2003

EXTENSIONS

More terms from Vladeta Jovovic (vladeta(AT)eunet.rs) and Jason Earls (zevi_35711(AT)yahoo.com), Jun 06 2003

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 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research