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!)
A056965 a(n) = n - (reversal of digits of n). 23
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, -9, -18, -27, -36, -45, -54, -63, -72, 18, 9, 0, -9, -18, -27, -36, -45, -54, -63, 27, 18, 9, 0, -9, -18, -27, -36, -45, -54, 36, 27, 18, 9, 0, -9, -18, -27, -36, -45, 45, 36, 27, 18, 9, 0, -9, -18, -27, -36, 54, 45, 36, 27, 18, 9, 0, -9, -18, -27, 63, 54, 45, 36, 27, 18, 9, 0, -9, -18, 72, 63, 54 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,11

COMMENTS

a(n) is a multiple of 9.

LINKS

Reinhard Zumkeller, Table of n, a(n) for n = 0..10000

Index entries for the Kaprekar map

FORMULA

a(n) = n - A004086(n) = 2*n - A056964(n).

EXAMPLE

a(17) = 17 - 71 = -54.

MAPLE

a:= n-> (s-> n-parse(cat(s[-i]$i=1..length(s))))(""||n):

seq(a(n), n=0..82);  # Alois P. Heinz, Jul 11 2021

MATHEMATICA

Table[n - FromDigits[Reverse[IntegerDigits[n]]], {n, 0, 82}] (* Jayanta Basu, Jul 11 2013 *)

PROG

(Haskell)

a056965 n = n - a004086 n  -- Reinhard Zumkeller, Sep 17 2013

(Python)

def a(n): return n - int(str(n)[::-1]) # Osman Mustafa Quddusi, Jul 11 2021

CROSSREFS

Cf. A004086, A056964, A068396, A151949, A265326.

Sequence in context: A273086 A332093 A151949 * A341486 A320379 A308102

Adjacent sequences:  A056962 A056963 A056964 * A056966 A056967 A056968

KEYWORD

base,sign,look

AUTHOR

Henry Bottomley, Jul 18 2000

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 August 1 14:14 EDT 2021. Contains 346391 sequences. (Running on oeis4.)