login
a(t_1 t_2...t_n) = (t_1 + t_2)*t_1 t_2 + ... + (t_n-1 + t_n)*t_n-1 t_n.
1

%I #39 Aug 03 2016 03:41:34

%S 1,4,9,16,25,36,49,64,81,10,22,36,52,70,90,112,136,162,190,40,63,88,

%T 115,144,175,208,243,280,319,90,124,160,198,238,280,324,370,418,468,

%U 160,205,252,301,352,405,460,517,576,637,250,306,364,424,486,550,616

%N a(t_1 t_2...t_n) = (t_1 + t_2)*t_1 t_2 + ... + (t_n-1 + t_n)*t_n-1 t_n.

%C Differs from A057147 first at n=100.

%C a(n)/n = {1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 6, 7, 8, 9, 10, 11, 12, 13, 14, 7, 8, 9, 10, 11, 12, 13, 14, 15, 8, 9, 10, 11, 12, 13, 14, 15, ...}. - _Alexander R. Povolotsky_, Jun 19 2012

%H Felipe Bottega Diniz and T. D. Noe, <a href="/A213630/b213630.txt">Table of n, a(n) for n = 1..1000</a> (first 100 terms from Felipe Bottega Diniz)

%H F. B. Diniz, <a href="http://arxiv.org/abs/1607.06082">About a New Family of Sequences</a>, arXiv:1607.06082 [math.GM], 2016.

%F Let t_1t_2...t_n be a natural number.

%F a(t_1t_2...t_n) = (t_1 + t_2)*t_1t_2 + ... + (t_n-1 + t_n)*t_n-1t_n, if n even.

%F If n is odd, t_1 t_2...t_n <- 0t_1t_2...t_n and do a(0t_1 t_2...t_n).

%e a(123456) = (1+2)*12 + (3+4)*34 + (5+6)*56 = 890.

%e a(890) = (0+8)*08 + (9+0)*90 = 874.

%e a(15) = (1+5)*15 = 90.

%e a(7) = (0+7)*07 = 49.

%p read("transforms"):

%p A213630 := proc(n)

%p local dgs,a,i ;

%p if n < 10 then

%p n^2;

%p else

%p dgs := convert(n,base,10) ;

%p a := 0 ;

%p for i from 2 to nops(dgs) do

%p a := a+(op(i-1,dgs)+op(i,dgs))*digcat2(op(i,dgs),op(i-1,dgs)) ;

%p end do:

%p a;

%p end if;

%p end proc: # _R. J. Mathar_, Aug 10 2012

%t num[n_] := Module[{d = IntegerDigits[n], d2}, If[OddQ[Length[d]], d = Prepend[d, 0]]; d2 = Partition[d, 2]; Sum[(d2[[i, 1]] + d2[[i, 2]])*(10*d2[[i, 1]] + d2[[i, 2]]), {i, Length[d2]}]]; Table[num[n], {n, 100}] (* _T. D. Noe_, Jun 19 2012 *)

%K easy,nonn,base

%O 1,2

%A _Felipe Bottega Diniz_, Jun 16 2012