cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A168294 Carryless product n times n+1.

This page as a plain text file.
%I A168294 #18 Jun 30 2020 03:15:07
%S A168294 0,2,6,2,0,0,2,6,2,90,110,132,156,172,190,110,132,156,172,280,420,462,
%T A168294 406,442,480,420,462,406,442,670,930,992,956,912,970,930,992,956,912,
%U A168294 260,640,622,606,682,660,640,622,606,682,50,550,552,556,552,550,550,552,556,552
%N A168294 Carryless product n times n+1.
%H A168294 David Applegate, Marc LeBrun and N. J. A. Sloane, <a href="http://neilsloane.com/doc/carry1.pdf">Carryless Arithmetic (I): The Mod 10 Version</a>.
%H A168294 <a href="/index/Ca#CARRYLESS">Index entries for sequences related to carryless arithmetic</a>
%o A168294 (Python)
%o A168294 def A168294(n):
%o A168294     s, t = [int(d) for d in str(n)], [int(d) for d in str(n+1)]
%o A168294     l, m = len(s), len(t)
%o A168294     u = [0]*(l+m-1)
%o A168294     for i in range(l):
%o A168294         for j in range(m):
%o A168294             u[i+j] = (u[i+j] + s[i]*t[j]) % 10
%o A168294     return int("".join(str(d) for d in u)) # _Chai Wah Wu_, Jun 30 2020
%Y A168294 Cf. A004520, A059729.
%K A168294 nonn,base
%O A168294 0,2
%A A168294 _David Applegate_, _Marc LeBrun_ and _N. J. A. Sloane_, Jul 06 2010