login
A152524
a(n) is the number of L-bit words in which, if up to k bits are perturbed, the resulting change in unsigned L-bit value is n, for L=8 and k=7.
1
508, 508, 504, 504, 500, 500, 496, 496, 492, 492, 488, 488, 484, 484, 480, 480, 476, 476, 472, 472, 468, 468, 464, 464, 460, 460, 456, 456, 452, 452, 448, 448, 444, 444, 440, 440, 436, 436, 432, 432, 428, 428, 424, 424, 420, 420, 416, 416, 412, 412, 408
OFFSET
1,1
FORMULA
a(n) = 511 + (-1)^n - 2*n.
G.f.: -4*(-127 + 128*n^2)/((n+1)*(n-1)^2).
EXAMPLE
For n=5, a(5) = 500, i.e., there are 500 possible L-bit words in which up to k bits can be perturbed, leading to a change in the word's unsigned value by 5, for L=8 and k=7.
For n=254, a(254) = 4, for L=8 and k=7.
For n=255, a(255) = 0, i.e., there is no L-bit word in which up to k bit positions can be perturbed to lead to a change in the unsigned value of the word by 255, for L=8 and k=7.
CROSSREFS
Sequence in context: A023913 A035848 A028685 * A236004 A024019 A159686
KEYWORD
nonn
AUTHOR
Phillip Stanley-Marbell (phillip.stanleymarbell(AT)gmail.com), Dec 06 2008, Dec 08 2008
STATUS
approved