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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A006940 Rows of Pascal's triangle mod 3.
(Formerly M4806)
2
1, 11, 121, 1001, 11011, 121121, 1002001, 11022011, 121212121, 1000000001, 11000000011, 121000000121, 1001000001001, 11011000011011, 121121000121121, 1002001001002001, 11022011011022011, 121212121121212121, 1000000002000000001, 11000000022000000011, 121000000212000000121 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

REFERENCES

C. Pickover, Mazes for the Mind, St. Martin's Press, NY, 1992, p. 353.

N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

LINKS

Table of n, a(n) for n=0..20.

MATHEMATICA

a[n_] := FromDigits[Table[Mod[Binomial[n, k], 3], {k, 0, n}]]; Array[a, 25, 0] (* Amiram Eldar, Nov 22 2018 *)

PROG

(PARI) a(n)=fromdigits(apply(x->x%3, binomial(n))); \\ Michel Marcus, Nov 21 2018

CROSSREFS

Cf. A007318.

Sequence in context: A068179 A293891 A218262 * A070844 A164327 A080445

Adjacent sequences:  A006937 A006938 A006939 * A006941 A006942 A006943

KEYWORD

nonn

AUTHOR

N. J. A. Sloane

EXTENSIONS

More terms from Michel Marcus, Nov 21 2018

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
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified January 23 21:17 EST 2019. Contains 319404 sequences. (Running on oeis4.)