A330633 The concatenation of the products of every pair of consecutive digits of n (with a(n) = 0 for 0 <= n <= 9).
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 0, 6, 12, 18, 24, 30, 36, 42, 48, 54, 0, 7, 14, 21, 28, 35, 42, 49, 56, 63, 0
Offset: 0
Links
- Scott R. Shannon, Table of n, a(n) for n = 1..10000
Crossrefs
Programs
-
Maple
read("transforms") : A330633 := proc(n) local dgs,L,i ; if n <=9 then 0; else dgs := ListTools[Reverse](convert(n,base,10)) ; L := [] ; for i from 2 to nops(dgs) do L := [op(L), op(i-1,dgs)*op(i,dgs)] ; end do: digcatL(L) ; end if; end proc: # R. J. Mathar, Jan 11 2020
-
Mathematica
Array[If[Or[# == 0, IntegerLength@ # == 1], 0, FromDigits[Join @@ IntegerDigits[Times @@ # & /@ Partition[IntegerDigits@ #, 2, 1]]]] &, 81, 0] (* Michael De Vlieger, Dec 23 2019 *)
-
PARI
a(n) = my(d=digits(n), s="0"); for (k=1, #d-1, s=concat(s, d[k]*d[k+1])); eval(s); \\ Michel Marcus, Apr 28 2020
Comments