OFFSET
0,2
COMMENTS
Same as Pisot sequences E(1, 38), L(1, 38), P(1, 38), T(1, 38). Essentially same as Pisot sequences E(38, 1444), L(38, 1444), P(38, 1444), T(38, 1444). See A008776 for definitions of Pisot sequences.
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 38-colored compositions of n such that no adjacent parts have the same color. - Milan Janjic, Nov 17 2011. [See A000244 for a proof.]
LINKS
T. D. Noe, Table of n, a(n) for n=0..100
Tanya Khovanova, Recursive Sequences
Index entries for linear recurrences with constant coefficients, signature (38).
FORMULA
G.f.: 1/(1 - 38*x). - Philippe Deléham, Nov 24 2008
a(n) = 38^n; a(n) = 38 * a(n-1), n > 0, a(0) = 1. - Vincenzo Librandi, Nov 21 2010
MATHEMATICA
38^Range[0, 19] (* Alonso del Arte, Feb 18 2017 *)
PROG
(Magma) [38^n: n in [0..20]] // Vincenzo Librandi, Nov 21 2010
(PARI) a(n)=38^n \\ M. F. Hasler, Feb 21 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved