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.

A064108 a(n) = (20^n - 1)/19.

This page as a plain text file.
%I A064108 #46 Aug 18 2024 15:26:11
%S A064108 0,1,21,421,8421,168421,3368421,67368421,1347368421,26947368421,
%T A064108 538947368421,10778947368421,215578947368421,4311578947368421,
%U A064108 86231578947368421,1724631578947368421,34492631578947368421,689852631578947368421,13797052631578947368421,275941052631578947368421
%N A064108 a(n) = (20^n - 1)/19.
%C A064108 Partial sums of powers of 20 (A009964), q-integers for q=20: diagonal k=1 in triangle A022184.
%C A064108 Partial sums are in A014904. Also, the sequence is related to A014937 by A014937(n) = n*a(n)-Sum_{i=0..n-1} a(i), for n>0. - _Bruno Berselli_, Nov 06 2012
%C A064108 For n >= 1, a(n) is the total number of holes in a certain box fractal (start with 20 boxes, 1 hole) after n iterations. See illustration in links. - _Kival Ngaokrajang_, Jan 28 2015
%H A064108 M. F. Hasler, <a href="/A064108/b064108.txt">Table of n, a(n) for n = 0..100</a>
%H A064108 Kival Ngaokrajang, <a href="/A064108/a064108.pdf">Illustration of initial terms</a>
%H A064108 <a href="/index/Par#partial">Index entries related to partial sums</a>
%H A064108 <a href="/index/Q#q-numbers">Index entries related to q-numbers</a>
%H A064108 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (21,-20).
%F A064108 a(n) = 20*a(n-1) + 1, with a(0)=0. - _Vincenzo Librandi_, Aug 07 2010
%F A064108 a(0)=0, a(1)=1, a(n) = 21*a(n-1) - 20*a(n-2). - _Harvey P. Dale_, Oct 04 2012
%F A064108 a(n) = floor(20^n/19). - _M. F. Hasler_, Nov 04 2012
%F A064108 G.f.: x/((1 - x)*(1 - 20*x)). - _Bruno Berselli_, Nov 06 2012
%F A064108 E.g.f.: exp(x)*(exp(19*x) - 1)/19. - _Stefano Spezia_, Mar 23 2023
%e A064108 From _N. J. A. Sloane_, Nov 04 2014: Can also be obtained by writing powers of 2 in a staggered array and adding them (cf. A249604). For example, a(9) is:
%e A064108 ..........1
%e A064108 .........2
%e A064108 ........4
%e A064108 .......8
%e A064108 .....16
%e A064108 ....32
%e A064108 ...64
%e A064108 .128
%e A064108 256
%e A064108 -----------
%e A064108 26947368421
%p A064108 a:=n->sum(20^(n-j), j=0..n): seq(a(n), n=0..15); # _Zerinvary Lajos_, Feb 11 2007
%t A064108 (20^Range[20]-1)/19 (* or *) NestList[20#+1&,1,20] (* _Harvey P. Dale_, Oct 04 2012 *)
%o A064108 (Sage) [gaussian_binomial(n,1,20) for n in range(1,17)] # _Zerinvary Lajos_, May 29 2009
%o A064108 (PARI) for (n=0, 100, write("b064108.txt", n, " ", (20^n - 1)/19))  \\ _Harry J. Smith_, Sep 07 2009
%o A064108 (PARI) A064108(n)=20^n\19  \\ _M. F. Hasler_, Nov 04 2012
%o A064108 (Maxima) A064108(n):=(20^n-1)/19$ makelist(A064108(n),n,1,30); /* _Martin Ettl_, Nov 05 2012 */
%Y A064108 Cf. A000225, A003462, A002450, A003463, A003464, A023000, A023001, A002452, A002275, A016123, A016125, A091030, A135519, A135518, A131865, A091045, A218722, A064108, A218724, ..., A218733, ..., A218743, ..., A218752, A094028.
%Y A064108 Cf. also A249604.
%Y A064108 Cf. A009964, A014904, A014937, A022184.
%K A064108 nonn,easy
%O A064108 0,3
%A A064108 _Jason Earls_, Sep 17 2001
%E A064108 Edited and extended to offset 0 by _M. F. Hasler_, Nov 04 2012