|
| |
|
|
A009947
|
|
Sequence of nonnegative integers, but insert n/2 after every even number n.
|
|
14
| |
|
|
0, 0, 1, 2, 1, 3, 4, 2, 5, 6, 3, 7, 8, 4, 9, 10, 5, 11, 12, 6, 13, 14, 7, 15, 16, 8, 17, 18, 9, 19, 20, 10, 21, 22, 11, 23, 24, 12, 25, 26, 13, 27, 28, 14, 29, 30, 15, 31, 32, 16, 33, 34, 17, 35, 36, 18, 37, 38, 19, 39, 40
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 0,4
|
|
|
COMMENTS
| Coefficients in expansion of e/3 = Sum a(n)/n!, n=1..inf, using greedy algorithm.
Numerators of Peirce sequence of order 2.
|
|
|
REFERENCES
| R. L. Graham, D. E. Knuth and O. Patashnik, Concrete Mathematics, Addison-Wesley, Reading, MA, 2nd ed. 1998, p. 151.
|
|
|
MAPLE
| A009947 := proc(a, n) local i, b, c; b := a; c := [ floor(b) ]; for i from 1 to n-1 do b := b-c[ i ]/i!; c := [ op(c), floor(b*(i+1)!) ]; od; c; end:
|
|
|
CROSSREFS
| Cf. A071281.
Sequence in context: A112382 A117384 A125160 * A166711 A026249 A130527
Adjacent sequences: A009944 A009945 A009946 * A009948 A009949 A009950
|
|
|
KEYWORD
| nonn,easy
|
|
|
AUTHOR
| R. W. Gosper
|
| |
|
|