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.
%I A003947 #73 Jan 03 2025 19:15:40 %S A003947 1,5,20,80,320,1280,5120,20480,81920,327680,1310720,5242880,20971520, %T A003947 83886080,335544320,1342177280,5368709120,21474836480,85899345920, %U A003947 343597383680,1374389534720,5497558138880,21990232555520,87960930222080,351843720888320 %N A003947 Expansion of (1+x)/(1-4*x). %C A003947 Coordination sequence for infinite tree with valency 5. %C A003947 For n>=1, a(n+1) is equal to the number of functions f:{1,2,...,n+1}->{1,2,3,4,5} such that for fixed, different x_1, x_2,...,x_n in {1,2,...,n+1} and fixed y_1, y_2,...,y_n in {1,2,3,4,5} we have f(x_i)<>y_i, (i=1,2,...,n). - _Milan Janjic_, May 10 2007 %C A003947 Number of length-n strings of 5 letters with no two adjacent letters identical. The general case (strings of r letters) is the sequence with g.f. (1+x)/(1-(r-1)*x). - _Joerg Arndt_, Oct 11 2012 %C A003947 Create a rectangular prism with edges of lengths 2^(n-2), 2^(n-1), and 2^(n) starting at n=2; then the surface area = a(n). - _J. M. Bergot_, Aug 08 2013 %H A003947 T. D. Noe, <a href="/A003947/b003947.txt">Table of n, a(n) for n = 0..200</a> %H A003947 INRIA Algorithms Project, <a href="http://ecs.inria.fr/services/structure?nbr=306">Encyclopedia of Combinatorial Structures 306</a> %H A003947 Milan Janjic, <a href="http://www.pmfbl.org/janjic/">Enumerative Formulas for Some Functions on Finite Sets</a> %H A003947 <a href="/index/Di#divseq">Index to divisibility sequences</a> %H A003947 <a href="/index/Rec#order_01">Index entries for linear recurrences with constant coefficients</a>, signature (4). %H A003947 <a href="/index/Tra#trees">Index entries for sequences related to trees</a> %F A003947 Binomial transform of A060925. Its binomial transform is A003463 (without leading zero). - _Paul Barry_, May 19 2003 %F A003947 From _Paul Barry_, May 19 2003: (Start) %F A003947 a(n) = (5*4^n - 0^n)/4. %F A003947 G.f.: (1+x)/(1-4*x). %F A003947 E.g.f.: (5*exp(4*x) - exp(0))/4. (End) %F A003947 a(n) = Sum_{k=0..n} A029653(n, k)*x^k for x = 3. - _Philippe Deléham_, Jul 10 2005 %F A003947 a(n) = A146523(n)*A011782(n). - _R. J. Mathar_, Jul 08 2009 %F A003947 a(n) = 5*A000302(n-1), n>0. %F A003947 a(n) = 4*a(n-1), n>1. - _Vincenzo Librandi_, Dec 31 2010 %F A003947 G.f.: 2+x- 2/G(0), where G(k)= 1 + 1/(1 - x*(5*k-4)/(x*(5*k+1) - 1/G(k+1))); (continued fraction). - _Sergei N. Gladkovskii_, Jun 04 2013 %p A003947 k := 5; if n = 0 then 1 else k*(k-1)^(n-1); fi; %t A003947 q = 5; Join[{a = 1}, Table[If[n != 0, a = q*a - a, a = q*a], {n, 0, 25}]] (* and *) Join[{1}, 5*4^Range[0, 25]] (* _Vladimir Joseph Stephan Orlovsky_, Jul 11 2011 *) %t A003947 LinearRecurrence[{4},{1,5},30] (* _Harvey P. Dale_, Apr 19 2015 *) %o A003947 (PARI) a(n)=5*4^n\4 \\ _Charles R Greathouse IV_, Sep 08 2011 %o A003947 (Magma) [1] cat [5*4^(n-1): n in [1..30]]; // _G. C. Greubel_, Aug 10 2019 %o A003947 (Sage) [1]+[5*4^(n-1) for n in (1..30)] # _G. C. Greubel_, Aug 10 2019 %o A003947 (GAP) Concatenation([1], List([1..30], n-> 5*4^(n-1) )); # _G. C. Greubel_, Aug 10 2019 %Y A003947 Cf. A003948, A003949. Column 5 in A265583. %K A003947 nonn,easy %O A003947 0,2 %A A003947 _N. J. A. Sloane_ %E A003947 Edited by _N. J. A. Sloane_, Dec 04 2009