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.

A309597 a(n) is the A325907(n)-th triangular number.

This page as a plain text file.
%I A309597 #55 Sep 16 2019 04:31:44
%S A309597 6,666,5656566,555665666566566,5555555666655656666556566566566,
%T A309597 555555555555555666666665555665666666666555566566666556566566566
%N A309597 a(n) is the A325907(n)-th triangular number.
%C A309597 a(n) decimal expansion includes A141023(n-1) 5's and A052950(n) 6's in digits.
%C A309597 All terms are elements of A213516.
%H A309597 Seiichi Manyama, <a href="/A309597/b309597.txt">Table of n, a(n) for n = 1..9</a>
%F A309597 a(n) = A000217(A325907(n)).
%F A309597 a(n) = A093142(2^n - 1) + A325493(n-1) + A325910(n-1) * 10^(2^(n-1)).
%e A309597 a(1) =               6 =               6 +        0 +    0 * 10^1.
%e A309597 a(2) =             666 =             556 +       10 +    1 * 10^2.
%e A309597 a(3) =         5656566 =         5555556 +     1010 +   10 * 10^4.
%e A309597 a(4) = 555665666566566 = 555555555555556 + 11011010 + 1101 * 10^8.
%e A309597 ------------------------------------------------------------------
%e A309597 a(2) =                                 6 6 6. (            3 6's)
%e A309597                                        - -
%e A309597 a(3) =                           5 65 65  66. ( 3 5's and  4 6's)
%e A309597                                  - -- --
%e A309597 a(4) =                  555 6656 6656   6566. ( 6 5's and  9 6's)
%e A309597                         --- ---- ----
%e A309597 a(5) = 5555555 66665565 66665565    66566566. (15 5's and 16 6's)
%e A309597        ------- -------- --------
%o A309597 (Ruby)
%o A309597 def A325907(n)
%o A309597   a = [3]
%o A309597   (2..n).each{|i|
%o A309597     j = 10 ** (2 ** (i - 2))
%o A309597     a << (j + 3) * (j - 1) / 3 - a[-1]
%o A309597   }
%o A309597   a
%o A309597 end
%o A309597 def A309597(n)
%o A309597   A325907(n).map{|i| i * (i + 1) / 2}
%o A309597 end
%o A309597 p A309597(10)
%Y A309597 Cf. A000217, A052950, A093142, A141023, A213516, A325907, A325910, A325493.
%K A309597 nonn
%O A309597 1,1
%A A309597 _Seiichi Manyama_, Sep 14 2019