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!)
A136627 For every number n in Ulam's spiral the sequence gives the number of primes around it (number n included). 2
4, 3, 4, 3, 3, 3, 3, 3, 3, 2, 4, 5, 4, 2, 2, 2, 3, 3, 4, 3, 3, 2, 3, 2, 1, 0, 2, 3, 4, 3, 3, 3, 3, 1, 2, 2, 3, 3, 3, 2, 3, 3, 3, 1, 1, 2, 3, 2, 1, 1, 1, 1, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 1, 3, 3, 3, 1, 2, 3, 5, 4, 4, 3, 2, 0, 1, 2, 2, 1, 1, 1, 1, 1, 2, 2, 2, 1, 2, 2, 1, 0, 2, 2, 4, 3, 3, 1, 0, 1, 1, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
In Ulam's lattice there are 8 numbers around any number. The sequence is similar to A136626 with an increment of 1 for any prime position.
LINKS
EXAMPLE
Numbers around 13 are 3, 12, 29, 30, 31, 32, 33, 14 -> 3, 29, 31 and 13 itself are primes, so a(13)=4.
CROSSREFS
Sequence in context: A238234 A367439 A367126 * A108171 A231475 A106055
KEYWORD
easy,nonn
AUTHOR
EXTENSIONS
Offset 1 per example and correction for a(32) by Kevin Ryde, Jul 04 2020
STATUS
approved

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 20 00:03 EDT 2024. Contains 371798 sequences. (Running on oeis4.)