The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A040164 |First digit - last digit| for n-th prime. 6
 0, 0, 0, 0, 0, 2, 6, 8, 1, 7, 2, 4, 3, 1, 3, 2, 4, 5, 1, 6, 4, 2, 5, 1, 2, 0, 2, 6, 8, 2, 6, 0, 6, 8, 8, 0, 6, 2, 6, 2, 8, 0, 0, 2, 6, 8, 1, 1, 5, 7, 1, 7, 1, 1, 5, 1, 7, 1, 5, 1, 1, 1, 4, 2, 0, 4, 2, 4, 4, 6, 0, 6, 4, 0, 6, 0, 6, 4, 3, 5, 5, 3, 3, 1, 5, 1, 5, 3, 3, 1, 3, 5, 3, 3, 5, 2, 4, 4, 2, 4, 2, 2, 2, 4, 4 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,6 LINKS FORMULA a(n) = A040163(A000040(n)). - Michel Marcus, Sep 27 2013 PROG (PARI) a(n) = my(pn = prime(n), digs = digits(pn)); abs(digs[1] - digs[#digs]); \\ Michel Marcus, Sep 27 2013 CROSSREFS Cf. A000040, A040163. Sequence in context: A021377 A261875 A084686 * A086353 A019786 A278497 Adjacent sequences: A040161 A040162 A040163 * A040165 A040166 A040167 KEYWORD nonn,base,easy AUTHOR EXTENSIONS Extended (and corrected) by Patrick De Geest, Jun 15 1999 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.

Last modified February 5 03:48 EST 2023. Contains 360082 sequences. (Running on oeis4.)