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.

A141583 Squares of tribonacci numbers A000213.

This page as a plain text file.
%I A141583 #25 Feb 16 2025 08:33:08
%S A141583 1,1,1,9,25,81,289,961,3249,11025,37249,126025,426409,1442401,4879681,
%T A141583 16507969,55845729,188925025,639128961,2162157001,7314525625,
%U A141583 24744863025,83711270241,283193201281,958035736849,3241011678961
%N A141583 Squares of tribonacci numbers A000213.
%C A141583 Partial sums are in A107240.
%C A141583 a(n) is also the number of total dominating sets in the (n-1)-ladder graph. - _Eric W. Weisstein_, Apr 10 2018
%H A141583 Vincenzo Librandi, <a href="/A141583/b141583.txt">Table of n, a(n) for n = 0..1000</a>
%H A141583 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/LadderGraph.html">Ladder Graph</a>
%H A141583 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/TotalDominatingSet.html">Total Dominating Set</a>
%H A141583 <a href="/index/Rec#order_06">Index entries for linear recurrences with constant coefficients</a>, signature (2,3,6,-1,0,-1).
%F A141583 a(n) = (A000213(n))^2.
%F A141583 O.g.f.: (1+x)^2*(1-3*x+x^2-x^3)/((1+x+x^2-x^3)*(1-3*x-x^2-x^3)).
%F A141583 a(n) = 2*a(n-1) + 3*a(n-2) + 6*a(n-3) - a(n-4) - a(n-6).
%t A141583 CoefficientList[Series[(1+x)^2*(1-3*x+x^2-x^3)/((1+x+x^2-x^3)*(1-3*x-x^2-x^3)), {x, 0, 40}], x] (* _Vincenzo Librandi_, Dec 13 2012 *)
%t A141583 Table[RootSum[-1 - # - #^2 + #^3 &, 2 #^n - 4 #^(n + 1) + 3 #^(n + 2) &]^2/121, {n, 0, 20}] (* _Eric W. Weisstein_, Apr 10 2018 *)
%t A141583 LinearRecurrence[{2,3,6,-1,0,-1}, {1,1,9,25,81,289}, {0, 20}] (* _Eric W. Weisstein_, Apr 10 2018 *)
%t A141583 LinearRecurrence[{1,1,1},{1,1,1},40]^2 (* _Harvey P. Dale_, Aug 01 2021 *)
%o A141583 (Magma) I:=[1,1,1,9,25,81]; [n le 6 select I[n] else 2*Self(n-1) + 3*Self(n-2) + 6*Self(n-3) - Self(n-4) - Self(n-6): n in [1..30]]; // _Vincenzo Librandi_, Dec 13 2012
%o A141583 (Sage)
%o A141583 @CachedFunction
%o A141583 def T(n): # A000213
%o A141583     if (n<3): return 1
%o A141583     else: return T(n-1) +T(n-2) +T(n-3)
%o A141583 def A141583(n): return T(n)^2
%o A141583 [A141583(n) for n in (0..40)] # _G. C. Greubel_, Nov 22 2021
%Y A141583 Cf. A000213, A085697, A107240.
%K A141583 easy,nonn
%O A141583 0,4
%A A141583 _R. J. Mathar_, Aug 19 2008