|
| |
|
|
A119408
|
|
Decimal equivalent of the binary string generated by the n X n identity matrix.
|
|
0
| | |
|
|
|
OFFSET
| 1,2
|
|
|
FORMULA
| The sequence can be generated by the following: 2^((n+1)(n-1)) + 2^((n+1)(n-2)) + ... + 1 where n=2,3,...
|
|
|
EXAMPLE
| n=2 [1 0; 0 1] == 1001b=9d
n=3 [1 0 0; 0 1 0; 0 0 1] == 100010001b=273d
n=4 [1 0 0 0; 0 1 0 0; 0 0 1 0; 0 0 0 1] == 1000010000100001b=33825d
|
|
|
MATHEMATICA
| For[n=2, n<=10, Print[n, " ", Sum[2^((n+1)(k-1)), {k, 1, n}]]; n++ ]
|
|
|
PROG
| (MATLAB) for n = 1:10 bi2de((reshape(eye(n), length(eye(n))^2, 1))') end - Kyle Stern, Dec 14 2011
|
|
|
CROSSREFS
| Sequence in context: A197981 A188812 A197768 * A177107 A012234 A012141
Adjacent sequences: A119405 A119406 A119407 * A119409 A119410 A119411
|
|
|
KEYWORD
| nonn,changed
|
|
|
AUTHOR
| Lynn R. Purser (lynn.r.purser(AT)boeing.com), Jul 25 2006
|
| |
|
|