%I #37 Jul 12 2023 12:44:16
%S 1,39,1521,59319,2313441,90224199,3518743761,137231006679,
%T 5352009260481,208728361158759,8140406085191601,317475837322472439,
%U 12381557655576425121,482880748567480579719,18832349194131742609041
%N Powers of 39.
%C Same as Pisot sequences E(1, 39), L(1, 39), P(1, 39), T(1, 39). Essentially same as Pisot sequences E(39, 1521), L(39, 1521), P(39, 1521), T(39, 1521). See A008776 for definitions of Pisot sequences.
%C The compositions of n in which each natural number is colored by one of p different colors are called p-colored compositions of n. For n >= 1, a(n) equals the number of 39-colored compositions of n such that no adjacent parts have the same color. - _Milan Janjic_, Nov 17 2011
%H T. D. Noe, <a href="/A009983/b009983.txt">Table of n, a(n) for n = 0..100</a>
%H Tanya Khovanova, <a href="http://www.tanyakhovanova.com/RecursiveSequences/RecursiveSequences.html">Recursive Sequences</a>
%H <a href="/index/Rec#order_01">Index entries for linear recurrences with constant coefficients</a>, signature (39).
%F G.f.: 1/(1-39*x). - _Philippe Deléham_, Nov 24 2008
%F a(n) = 39^n; a(n) = 39*a(n-1), a(0)=1. - _Vincenzo Librandi_, Nov 21 2010
%t 39^Range[0,20] (* _Harvey P. Dale_, Dec 02 2010 *)
%o (Magma)[39^n: n in [0..20]] // _Vincenzo Librandi_, Nov 21 2010
%o (PARI) a(n)=39^n \\ _Charles R Greathouse IV_, Nov 18 2011
%K nonn,easy
%O 0,2
%A _N. J. A. Sloane_