The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A104176 a(n) = bitwise OR of all terms of n-th row of Pascal's triangle. 2
1, 1, 3, 3, 7, 15, 31, 55, 127, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535, 126975, 262143, 524287, 1048575, 2097151, 4194303, 8388607, 16777215, 33554431, 67108863, 134217727, 268435455, 536870911, 1073741823, 2147483647 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
Eric Weisstein's World of Mathematics, Pascal's Triangle
FORMULA
Most but not all terms are of the form 2^n - 1 for some integer n. In the first 1600 terms we have: repeated numbers: 1, 3, 127 and 274877906943. Numbers not of form 2^n -1: 55, 126975.
EXAMPLE
Row 0 = 1 = 1
Row 1 = 1 OR 1 = 1
Row 2 = 1 OR 2 OR 1 = 3
Row 3 = 1 OR 3 OR 3 OR 1 = 3
MATHEMATICA
BitOr@@@Table[Binomial[n, k], {n, 0, 40}, {k, 0, n}] (* Harvey P. Dale, Jun 15 2021 *)
PROG
(PARI) a(n) = {or = binomial (n, 0); for (i=1, n, or = bitor(or, binomial(n, i)); ); return (or); } \\ Michel Marcus, Jun 08 2013
CROSSREFS
Sequence in context: A056420 A030069 A004043 * A032294 A146034 A032029
KEYWORD
nonn,base
AUTHOR
Andrew G. West (WestA(AT)wlu.edu), Mar 28 2005
EXTENSIONS
Name changed by Franklin T. Adams-Watters, Mar 29 2014
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 28 04:02 EDT 2024. Contains 372900 sequences. (Running on oeis4.)