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!)
A071955 a(n) = remainder when n is reduced mod reverse(n). 3
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 13, 14, 15, 16, 17, 18, 19, 0, 9, 0, 23, 24, 25, 26, 27, 28, 29, 0, 5, 9, 0, 34, 35, 36, 37, 38, 39, 0, 13, 18, 9, 0, 45, 46, 47, 48, 49, 0, 6, 2, 18, 9, 0, 56, 57, 58, 59, 0, 13, 10, 27, 18, 9, 0, 67, 68, 69, 0, 3, 18, 36, 27, 18, 9, 0, 78, 79, 0, 9 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,12

COMMENTS

a(n)=0 if n is palindromic - Labos Elemer, Jan 28 2005

LINKS

Rémy Sigrist, Table of n, a(n) for n = 1..10000

EXAMPLE

a(85) = 85 mod 58 = 27.

MATHEMATICA

Table[Mod[n, FromDigits[Reverse[IntegerDigits[n]]]], {n, 1, 256}] (* Labos Elemer, Jan 28 2005 *)

Table[Mod[n, FromDigits[Reverse[IntegerDigits[n]]]], {n, 1, 100}]

PROG

(PARI) a(n, base=10) = my (r=fromdigits(Vecrev(digits(n, base)), base)); n%r \\ Rémy Sigrist, Apr 05 2020

CROSSREFS

Cf. A002113, A071590, A103164, A103168.

Sequence in context: A284372 A004453 A004501 * A267760 A261921 A125290

Adjacent sequences:  A071952 A071953 A071954 * A071956 A071957 A071958

KEYWORD

base,nonn

AUTHOR

Joseph L. Pe, Jun 16 2002

EXTENSIONS

Edited by N. J. A. Sloane at the suggestion of Andrew S. Plewe, Jul 14 2007

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 May 25 04:05 EDT 2022. Contains 354048 sequences. (Running on oeis4.)