OFFSET
0,3
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..9999
David Applegate, Marc LeBrun and N. J. A. Sloane, Carryless Arithmetic (I): The Mod 10 Version.
EXAMPLE
a(87) is carryless sum of (6)400, (5)60, (5)60 and (4)9, i.e., 400+20+9 = 429.
PROG
(Python)
def A059729(n):
s = [int(d) for d in str(n)]
l = len(s)
t = [0]*(2*l-1)
for i in range(l):
for j in range(l):
t[i+j] = (t[i+j] + s[i]*s[j]) % 10
return int("".join(str(d) for d in t)) # Chai Wah Wu, Jun 29 2020
(PARI) a(n) = fromdigits(Vec(Pol(digits(n))^2)%10) \\ Ruud H.G. van Tol, Dec 07 2022
CROSSREFS
KEYWORD
AUTHOR
Henry Bottomley, Feb 20 2001
STATUS
approved