Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A047972
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A047972 Distance of n-th prime to nearest square. +0
3
1, 1, 1, 2, 2, 3, 1, 3, 2, 4, 5, 1, 5, 6, 2, 4, 5, 3, 3, 7, 8, 2, 2, 8, 3, 1, 3, 7, 9, 8, 6, 10, 7, 5, 5, 7, 12, 6, 2, 4, 10, 12, 5, 3, 1, 3, 14, 2, 2, 4, 8, 14, 15, 5, 1, 7, 13, 15, 12, 8, 6, 4, 17, 13, 11, 7, 7, 13, 14, 12, 8, 2, 6, 12, 18, 17, 11, 3, 1, 9, 19, 20, 10, 8, 2, 2, 8, 16, 20, 21 (list; graph; listen)
OFFSET

1,4

FORMULA

For each prime, find the closest square (preceding or succeeding); subtract, take absolute value.

EXAMPLE

For 13, 9 is the preceding square, 16 is the succeeding. 13-9 = 4, 16-13 is 3, so the distance is 3.

CROSSREFS

Cf. A047973.

Sequence in context: A144911 A160650 A088904 this_sequence A088741 A004595 A071681

Adjacent sequences: A047969 A047970 A047971 this_sequence A047973 A047974 A047975

KEYWORD

easy,nonn,nice

AUTHOR

Enoch Haga (Enokh(AT)comcast.net)

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 December 15 00:47 EST 2009. Contains 170825 sequences.


AT&T Labs Research