login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A068396 n-th prime minus its reversal. 4
0, 0, 0, 0, 0, -18, -54, -72, -9, -63, 18, -36, 27, 9, -27, 18, -36, 45, -9, 54, 36, -18, 45, -9, 18, 0, -198, -594, -792, -198, -594, 0, -594, -792, -792, 0, -594, -198, -594, -198, -792, 0, 0, -198, -594, -792, 99, -99, -495 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,6

COMMENTS

a(n) = 0 for n in A075807. - Michel Marcus, Sep 27 2017

LINKS

R. Zumkeller, Table of n, a(n) for n = 1..10000

FORMULA

a(n) = A000040(n) - A004087(n).

a(n) = A056965(A000040(n)). - Michel Marcus, Sep 27 2017

EXAMPLE

a(10) = 29 - 92 = -63;

a(20) = 71 - 17 = 54.

MATHEMATICA

#-IntegerReverse[#]& /@ Prime[Range[50]] (* Harvey P. Dale, Dec 20 2012 *)

PROG

(Haskell)

a068396 n = p - a004086 p  where p = a000040 n

-- Reinhard Zumkeller, Feb 04 2014

(PARI) a(n) = prime(n) - fromdigits(Vecrev(digits(prime(n)))); \\ Michel Marcus, Sep 27 2017

CROSSREFS

Cf. A000040, A004086, A056965, A061227, A075807.

Sequence in context: A059137 A096011 A176026 * A205874 A044120 A056808

Adjacent sequences:  A068393 A068394 A068395 * A068397 A068398 A068399

KEYWORD

sign,base,nice,look

AUTHOR

Reinhard Zumkeller, Mar 08 2002

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified January 24 07:18 EST 2020. Contains 331189 sequences. (Running on oeis4.)