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.

A339359 Irregular triangle read by rows; the first row simply contains the value 1; given the succession of digits of the n-th row, say [d_0, ..., d_k], the (n+1)-th row is [d_0, d_0+d_1, d_1+d_2, ..., d_{k-1}+d_k, d_k].

This page as a plain text file.
%I A339359 #25 Aug 19 2025 08:44:35
%S A339359 1,1,1,1,2,1,1,3,3,1,1,4,6,4,1,1,5,10,10,5,1,1,6,6,1,1,1,5,6,1,1,7,12,
%T A339359 7,2,2,6,11,7,1,1,8,8,3,9,9,4,8,7,2,8,8,1,1,9,16,11,12,18,13,12,15,9,
%U A339359 10,16,9,1,1,10,10,7,7,2,2,3,3,9,9,4,4,3,3,6,14,10,1,1,7,15,10,1
%N A339359 Irregular triangle read by rows; the first row simply contains the value 1; given the succession of digits of the n-th row, say [d_0, ..., d_k], the (n+1)-th row is [d_0, d_0+d_1, d_1+d_2, ..., d_{k-1}+d_k, d_k].
%C A339359 This sequence combines features of Pascal's triangle (A007318) and of A214365.
%C A339359 Rows 0 to 5 match that of Pascal's triangle, thereafter the values differ.
%C A339359 Every column is eventually periodic.
%H A339359 Paolo Xausa, <a href="/A339359/b339359.txt">Table of n, a(n) for n = 0..15582</a> (rows 0..30 of triangle, flattend).
%e A339359 The first rows are:
%e A339359     1
%e A339359     1, 1
%e A339359     1, 2, 1
%e A339359     1, 3, 3, 1
%e A339359     1, 4, 6, 4, 1
%e A339359     1, 5, 10, 10, 5, 1
%e A339359     1, 6, 6, 1, 1, 1, 5, 6, 1
%e A339359     1, 7, 12, 7, 2, 2, 6, 11, 7, 1
%e A339359     1, 8, 8, 3, 9, 9, 4, 8, 7, 2, 8, 8, 1
%e A339359     1, 9, 16, 11, 12, 18, 13, 12, 15, 9, 10, 16, 9, 1
%t A339359 NestList[Map[Total, Partition[Flatten[IntegerDigits[#]], 2, 1, {-1, 1}, 0]] &, {1}, 10] (* _Paolo Xausa_, Aug 19 2025 *)
%o A339359 (PARI) { r=[1]; for (n=0, 10, apply (v -> print1(v", "), r); d=concat(apply(digits, r)); r=vector(#d+1, k, if (k==1, d[1], k==#d+1, d[#d], d[k-1]+d[k]))) }
%Y A339359 See A339379 for a similar sequence.
%Y A339359 Cf. A007318, A214365.
%K A339359 nonn,base,tabf,easy
%O A339359 0,5
%A A339359 _Rémy Sigrist_, Dec 02 2020