login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A009982 Powers of 38. 3
1, 38, 1444, 54872, 2085136, 79235168, 3010936384, 114415582592, 4347792138496, 165216101262848, 6278211847988224, 238572050223552512, 9065737908494995456, 344498040522809827328, 13090925539866773438464, 497455170514937390661632 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

COMMENTS

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

Cf. A000244 (powers of 3).

Sequence in context: A158702 A239364 A078987 * A041685 A221385 A158766

Adjacent sequences:  A009979 A009980 A009981 * A009983 A009984 A009985

KEYWORD

nonn,easy

AUTHOR

N. J. A. Sloane.

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy .

Last modified March 30 14:31 EDT 2017. Contains 284302 sequences.