OFFSET
0,3
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
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
KEYWORD
nonn,base,changed
AUTHOR
Andrew G. West (WestA(AT)wlu.edu), Mar 28 2005
EXTENSIONS
Name changed by Franklin T. Adams-Watters, Mar 29 2014
STATUS
approved