login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A132635 Number of primes, 0s, and 1s in [0, n^2). 0
0, 1, 4, 6, 8, 11, 13, 17, 20, 24, 27, 32, 36, 41, 46, 50, 56, 63, 68, 74, 80, 87, 94, 101, 107, 116, 124, 131, 139, 148, 156, 164, 174, 183, 193, 202, 212, 221, 230, 242, 253, 265, 276, 285, 297, 308, 321, 331, 344, 359, 369, 380, 395, 411, 423, 436, 447, 459, 476 (list; graph; refs; listen; history; internal format)
OFFSET

0,3

COMMENTS

Number of p-adic cyclotomic type levels in A_n-1 or SU(n).

FORMULA

a(n) = pi(n^2) + 2 = A038107(n) + 2, n > 1. [Charles R Greathouse IV, Nov 07 2011]

EXAMPLE

SU(5) at n^2-1=24 is exactly inside SU(9) at n^2-1=80.

MATHEMATICA

Table[Sum[If[m == 0 || m == 1, 1, If[PrimeQ[m], 1, 0]], {m, 0, n^2 - 1}], {n, 0, 30}]

PROG

(PARI) a(n)=if(n<2, n, primepi(n^2)+2) \\ Charles R Greathouse IV, Nov 07 2011

CROSSREFS

Sequence in context: A047290 A086377 A003662 * A134779 A075325 A026278

Adjacent sequences:  A132632 A132633 A132634 * A132636 A132637 A132638

KEYWORD

nonn,easy

AUTHOR

Roger L. Bagula and Gary W. Adamson (rlbagulatftn(AT)yahoo.com), Aug 26 2008

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 14:19 EST 2012. Contains 206038 sequences.