OFFSET
1,12
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
EXAMPLE
a(n) = 0 for palindromic numbers.
MATHEMATICA
rd[x_]:=FromDigits[Reverse[IntegerDigits[x]]] Table[Mod[rd[n], n], {n, 1, 256}]
PROG
(PARI) a(n, base=10) = my (r=fromdigits(Vecrev(digits(n, base)), base)); r%n \\ Rémy Sigrist, Apr 05 2020
(Python)
def a(n): return int(str(n)[::-1])%n
print([a(n) for n in range(1, 84)]) # Michael S. Branicky, Dec 12 2021
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Labos Elemer, Jan 28 2005
EXTENSIONS
Definition corrected by N. J. A. Sloane, Jul 14 2007
STATUS
approved