|
| |
|
|
A030340
|
|
a(n)=(# 1's)-(# 2's) in first n terms of A003137.
|
|
0
| |
|
|
1, 0, 1, 1, 2, 3, 4, 3, 2, 2, 1, 2, 1, 0, 1, 1, 1, 2, 2, 3, 4, 4, 3, 4, 5, 5, 6, 7, 8, 9, 10, 9, 10, 9, 9, 10, 9, 10, 11, 10, 9, 8, 8, 8, 7, 7, 8, 7, 7, 6, 5, 6, 6, 5, 6, 7, 6, 7, 6, 5, 4, 4, 3, 2, 3, 2, 1, 0, 1, 1, 1, 1, 2, 2, 2, 3, 4, 4, 4, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 10, 11, 11, 12, 11, 12, 12
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 1,5
|
|
|
COMMENTS
| This sequence is nonnegative: in any group of numbers with the same number of digits, the number with a 1 in a particular position always occurs before the number with a 2 in that position. In fact, 0's only occur on the last digits of (3^N)-1, where N is an integer, not the sequence index - Larry Reeves (larryr(AT)acm.org), Sep 25 2000
|
|
|
CROSSREFS
| Sequence in context: A171456 A028356 A073791 * A122453 A017849 A134536
Adjacent sequences: A030337 A030338 A030339 * A030341 A030342 A030343
|
|
|
KEYWORD
| nonn,base
|
|
|
AUTHOR
| Clark Kimberling (ck6(AT)evansville.edu)
|
|
|
EXTENSIONS
| More terms from Larry Reeves (larryr(AT)acm.org), Sep 25 2000
|
| |
|
|