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!)
A213081 Exclusive-or based Pascal triangle, read by rows: T(n,1)=T(n,n)=n and T(n,k) = T(n-1,k-1) XOR T(n-1,k), where XOR is the bitwise exclusive-or operator. 0
1, 2, 2, 3, 0, 3, 4, 3, 3, 4, 5, 7, 0, 7, 5, 6, 2, 7, 7, 2, 6, 7, 4, 5, 0, 5, 4, 7, 8, 3, 1, 5, 5, 1, 3, 8, 9, 11, 2, 4, 0, 4, 2, 11, 9, 10, 2, 9, 6, 4, 4, 6, 9, 2, 10, 11, 8, 11, 15, 2, 0, 2, 15, 11, 8, 11, 12, 3, 3, 4, 13, 2, 2, 13, 4, 3, 3, 12, 13, 15 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
Table begins:
1;
2, 2;
3, 0, 3;
4, 3, 3, 4;
5, 7, 0, 7, 5;
6, 2, 7, 7, 2, 6;
7, 4, 5, 0, 5, 4, 7;
8, 3, 1, 5, 5, 1, 3, 8;
9, 11, 2, 4, 0, 4, 2, 11, 9;
10, 2, 9, 6, 4, 4, 6, 9, 2, 10;
11, 8, 11, 15, 2, 0, 2, 15, 11, 8, 11;
PROG
(Python)
src = [0]*1024
dst = [0]*1024
for i in range(1, 39):
dst[0] = dst[i-1] = i
for j in range(1, i-1):
dst[j] = src[j-1]^src[j]
for j in range(i):
src[j] = dst[j]
print(dst[j], end=', ')
CROSSREFS
Cf. A007318 - Pascal's triangle read by rows.
Cf. A051597 - Pascal's triangle, begin and end n-th row with n+1, read by rows.
Cf. A080046 - Multiplicative Pascal triangle, read by rows: T(n,1)=T(n,n)=n and T(n,k) = T(n-1,k-1) * T(n-1,k).
Sequence in context: A233558 A319929 A129234 * A127446 A046157 A035167
KEYWORD
nonn,tabl,base
AUTHOR
Alex Ratushnyak, Jun 04 2012
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 April 23 06:58 EDT 2024. Contains 371906 sequences. (Running on oeis4.)