login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A168294
Carryless product n times n+1.
7
0, 2, 6, 2, 0, 0, 2, 6, 2, 90, 110, 132, 156, 172, 190, 110, 132, 156, 172, 280, 420, 462, 406, 442, 480, 420, 462, 406, 442, 670, 930, 992, 956, 912, 970, 930, 992, 956, 912, 260, 640, 622, 606, 682, 660, 640, 622, 606, 682, 50, 550, 552, 556, 552, 550, 550, 552, 556, 552
OFFSET
0,2
PROG
(Python)
def A168294(n):
s, t = [int(d) for d in str(n)], [int(d) for d in str(n+1)]
l, m = len(s), len(t)
u = [0]*(l+m-1)
for i in range(l):
for j in range(m):
u[i+j] = (u[i+j] + s[i]*t[j]) % 10
return int("".join(str(d) for d in u)) # Chai Wah Wu, Jun 30 2020
CROSSREFS
Sequence in context: A185972 A182918 A134301 * A363737 A004544 A010590
KEYWORD
nonn,base
AUTHOR
STATUS
approved