cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Previous Showing 11-20 of 28 results. Next

A131981 Number of early bird numbers <= n.

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 9, 10, 10, 10, 10, 10, 10, 11, 12, 13, 14, 14, 15, 15, 15, 15, 15, 16, 17, 18, 19, 20, 20, 21, 21, 21, 21, 22, 23, 24, 25, 26, 27, 27, 28, 28, 28, 29, 30, 31, 32
Offset: 1

Views

Author

Klaus Brockhaus, Aug 15 2007

Keywords

Comments

a(n) = number of k such that A116700(k) <= n; a(n) = n - number of k such that A131881(k) <= n.
A131982 gives numbers n such that a(n) = n/2, or numbers n such that (number of k such that A116700(k) <= n) = (number of k such that A131881(k) <= n).

Examples

			There are two early bird numbers <= 21, viz. 12 and 21, hence a(21) = 2.
		

Crossrefs

Cf. A116700 (early bird numbers), A131881 (complement of A116700), A132133 (number of n-digit terms of 131881), A105390 (number of Rollman numbers <= n), A131982 (numbers n such that A131981(n) = n/2).

Programs

  • JBASIC
    s$ = "" : d = 0
    FOR n = 1 TO 84
    sn$ = str$(n)
    IF instr(s$, sn$) > 0 THEN d = d+1
    s$ = s$ + sn$ : print d ; ",";
    NEXT

A296356 a(n) = A296354(n) - A296355(n).

Original entry on oeis.org

0, 0, 5, 3, 21, 19, 23, 11, 65, 53, 59, 72, 74, 81, 70, 31, 169, 182, 166, 176, 183, 148, 202, 188, 210, 202, 180, 228, 218, 216, 185, 79, 441, 345, 411, 467, 433, 458, 416, 475, 449, 489, 436, 461, 516, 374, 509, 462, 538, 487, 537, 505, 522, 503, 577, 560
Offset: 0

Views

Author

N. J. A. Sloane, Dec 14 2017, corrected and extended Dec 17 2017

Keywords

Comments

This is the binary "early-birdness" of n (cf. A116700, A296364).
Theorem: a(n) > 0 for all n > 1.
Proof. The claim is true for 2 <= n <= 7, so assume n >= 8, and let u = 1... denote the binary expansion of n. Let L denote the list of all binary vectors whose concatenation gives A076478.
To show a(n)>0 it is enough to exhibit a pair of successive binary vectors b, c in L whose concatenation contains a copy of u that begins in b and is such that b appears in L before u does. There are three cases.
(i) Suppose n is even, say u = 1x0. Take c = x00, and let b be the vector preceding c in L, so that b = y11, say. Then bc = y11x00 contains u.
(ii) Suppose n = 2^k-1, u = 1^k. Take b = 01^(k-1), c = 10^(k-1), so that bc = 0 1^k 0^(k-1).
(iii) Otherwise, n is an odd number whose binary expansion contains a 0, say u = 1^k 0x1. Take c = 0x10^k, and let b be the vector preceding c in L, so that b = y1^k, say, and bc = y1^k 0x10^k.
In each case we need to verify that b does appear in L before u, but we leave this easy verification to the reader. QED

Crossrefs

Extensions

More terms from Rémy Sigrist, Dec 19 2017

A133650 Early early bird numbers (early bird numbers of order 2).

Original entry on oeis.org

99, 111, 122, 123, 132, 142, 152, 162, 172, 182, 192, 211, 212, 214, 215, 216, 217, 218, 219, 220, 221, 231, 232, 233, 234, 243, 253, 263, 273, 283, 293, 311, 312, 313, 321, 322, 323, 325, 326, 327, 328, 329, 330, 331, 332, 342, 343, 344, 345, 354, 364, 374
Offset: 1

Views

Author

Klaus Brockhaus, Sep 19 2007

Keywords

Comments

N-th Early bird number A116700(n) is in the sequence if it occurs in the concatenation of the first n-1 early bird numbers, A116700(1), ..., A116700(n-1).
With A116700 as early bird numbers of order 1, this can be generalized to define early bird numbers of order k for k > 1: N-th Early bird number of order k-1 is an early bird number of order k if it occurs in the concatenation of the first n-1 early bird numbers of order k-1.
Inspired by Eric Angelini's posting to Seq Fan mailing list, Jul 23 2007.

Examples

			A116700(45) = 99 occurs in the concatenation 1221233132344142434551525354566162636465677172737475767881828384858687899192939495969798 of A116700(1), ..., A116700(44). Hence 99 is an early bird number of order 2.
		

Crossrefs

Cf. A116700 (early bird numbers), A133651 (early bird numbers of order 3), A133652 (least early bird number of order n).

Programs

  • JBASIC
    REM Program works for order >= 1; set maxterm >= A133652(order).
    order = 2
    maxterm = 374 : dim seq(maxterm), early(maxterm)
    for i = 1 to maxterm : seq(i) = i : next
    for k = 1 to order
    concatenation$ = "" : n = 0
    for j = 1 to maxterm
    term = seq(j) : string$ = str$(term)
    if instr(concatenation$, string$) > 0 then n = n+1 : early(n) = term
    concatenation$ = concatenation$ + string$
    next j
    maxterm = n : redim seq(maxterm)
    for i = 1 to maxterm : seq(i) = early(i) : next
    redim early(maxterm)
    next k
    print "early bird numbers of order "; order
    for i = 1 to maxterm : print seq(i); ","; : next

A133651 Early bird numbers of order 3.

Original entry on oeis.org

212, 214, 215, 216, 217, 218, 219, 221, 231, 312, 313, 321, 322, 323, 325, 326, 327, 328, 329, 331, 332, 342, 421, 423, 424, 432, 433, 434, 436, 437, 438, 439, 441, 442, 443, 453, 521, 532, 534, 535, 543, 544, 545, 547, 548, 549, 551, 552, 553, 554, 564
Offset: 1

Views

Author

Klaus Brockhaus, Sep 19 2007

Keywords

Comments

N-th Early bird number of order 2 is in the sequence if it occurs in the concatenation of the first n-1 early bird numbers of order 2.

Examples

			A133650(13) = 212 occurs in the concatenation 99111122123132142152162172182192211 of A133650(1), ..., A133650(12). Hence 212 is an early bird number of order 3.
		

Crossrefs

Cf. A116700 (early bird numbers), A133650 (early bird numbers of order 2), A133652 (least early bird number of order n).

A333921 a(n) is the least k such that the decimal representation of n appears as a substring in the concatenation of 0, 1, ..., k.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 2, 13, 14, 15, 16, 17, 18, 19, 20, 13, 22, 3, 24, 25, 26, 27, 28, 29, 30, 14, 24, 33, 4, 35, 36, 37, 38, 39, 40, 15, 25, 35, 44, 5, 46, 47, 48, 49, 50, 16, 26, 36, 46, 55, 6, 57, 58, 59, 60, 17, 27, 37, 47, 57, 66, 7, 68
Offset: 0

Views

Author

Rémy Sigrist, Apr 10 2020

Keywords

Comments

Every nonnegative integer appears finitely many times in this sequence.

Crossrefs

Cf. A007908, A116700, A131881, A333920 (binary variant).

Programs

  • PARI
    a(n, base=10) = { my (w=base^#digits(n, base), m=0); for (k=0, oo, my (d=if (k, digits(k, base), [0])); for (i=1, #d, m=(base*m+d[i])%w; if (m==n, return (k)))) }

Formula

a(n) <= n with equality iff n = 0 or n belongs to A131881.
a(A007908(n)) = n for any n > 0.

A131982 Numbers n such that A131981(n) = n/2.

Original entry on oeis.org

576, 584, 588, 592, 600, 1650, 1654, 3430, 3440, 3448, 3452, 3458, 3462, 3466, 3474, 3520, 3600, 3608, 3610
Offset: 1

Views

Author

Klaus Brockhaus, Aug 15 2007

Keywords

Comments

Numbers n such that number of terms <= n of A116700 equals number of terms <= n of A131881.
Numbers n such that numbers of numbers that occur in the concatenation of 1,2,3...,n-1 equals numbers of numbers that do not occur in the concatenation of 1,2,3...,n-1.
There are no other terms <= 600000. The plots in the link strongly suggest that the sequence is complete.

Examples

			A131981(n) < n/2 for 1 <=n < 576,
A131981(n) < n/2 for 576 < n < 584,
A131981(n) > n/2 for 584 < n < 588,
A131981(n) < n/2 for 588 < n < 592,
A131981(n) > n/2 for 592 < n < 600,
A131981(n) > n/2 for 600 < n < 1650,
A131981(n) > n/2 for 1650 < n < 1654,
A131981(n) < n/2 for 1654 < n < 3430,
A131981(n) > n/2 for 3430 < n < 3440,
..............
A131981(n) < n/2 for 3608 < n <= 3610,
A131981(n) > n/2 for 3610 < n <= 600000.
		

Crossrefs

Cf. A116700 (early bird numbers), A131881 (complement of A116700), A131981 (number of early bird numbers <= n), A105390 (number of Rollman numbers <= n), A105391 (numbers n such that A105390(n) = n/2).

Programs

  • JBASIC
    s$ = "" : c = 0 : d = 0
    FOR n = 1 TO 4000
    sn$ = str$(n)
    IF instr(s$, sn$) > 0 THEN d = d+1 ELSE c = c+1
    s$ = s$ + sn$ : IF c = d THEN print n ; ",";
    NEXT

Extensions

Edited by Charles R Greathouse IV, Oct 28 2009

A133652 Least early bird number of order n.

Original entry on oeis.org

12, 99, 212, 221, 1532, 2211, 4221, 12111, 21111, 22211, 42221, 111107, 121111, 211111, 222216, 878777, 1111102, 1121111, 1211111, 2111111, 4332343, 9999993, 11111051, 11111106, 11211111, 12111111, 21111111
Offset: 1

Views

Author

Klaus Brockhaus, Sep 19 2007

Keywords

Comments

See A133650 for definition of early bird numbers of order n.
a(28) > 6*10^7. [From Donovan Johnson, Nov 06 2010]

Examples

			a(3) = A133651(1) = 212.
		

Crossrefs

Cf. A116700 (early bird numbers), A133650 (early bird numbers of order 2), A133651 (early bird numbers of order 3).

Extensions

a(16)-a(27) from Donovan Johnson, Nov 06 2010

A161374 "Punctual" binary numbers. Complement of A161373.

Original entry on oeis.org

0, 1, 2, 4, 8, 10, 16, 22, 32, 36, 64, 128, 136, 256, 512, 528, 1024, 2048, 2080, 4096, 8192, 8256, 16384, 32768, 32896, 65536, 131072, 131328, 262144, 524288, 524800, 1048576, 2097152, 2098176, 4194304, 8388608, 8390656, 16777216, 33554432
Offset: 1

Views

Author

Keywords

Comments

A161373 U {a(n)} = A000027.
Whether or not 22 is punctual or early bird is a matter interpretation of "early occurrence" in the definition of A161373: 10110 occurs as the right 3 bits of 21 (10101) and the left 2 bits of 22 (10110) itself, which is ahead of the natural position, but not *completely* ahead of it. One can show (see weblink) the 22 is the only such case of doubt. [From Hagen von Eitzen, Jun 29 2009]

Crossrefs

Formula

From Hagen von Eitzen, Jun 29 2009: (Start)
G.f.: (1+x+2x^2)/(2-8x^3) + x/(2-4x^3) -1/2 -x + x^4 + 4x^5 + 2x^6 + 6x^7 + 6x^8
If q>=3 then a(3q) = 2^(2q-1), a(3q+1) = 2^(2q-1) + 2^(q-1), a(3q+2) = 2^(2q). (End)
a(n) = A083655(n-2) for n>=9. - Alois P. Heinz, Dec 14 2022

Extensions

Offset corrected as customary for lists, 20 removed by Hagen von Eitzen, Jun 27 2009
More terms from Hagen von Eitzen, Jun 29 2009

A165450 Sequence gives prime numbers which occur in A033308 ahead of their natural place.

Original entry on oeis.org

23, 31, 71, 113, 131, 137, 167, 173, 271, 293, 311, 313, 317, 331, 347, 359, 373, 379, 389, 491, 571, 593, 631, 673, 677, 719, 733, 761, 773, 811, 877, 911, 941, 971, 977, 983, 997, 1031, 1091, 1103, 1109, 1171, 1193, 1223, 1231, 1277, 1283, 1291, 1361
Offset: 1

Views

Author

Rémy Sigrist, Sep 20 2009

Keywords

Crossrefs

Same idea as A116700 applied to prime numbers.

A296364 a(n) = A296349(n) - A030304(n).

Original entry on oeis.org

0, 0, 0, 3, 0, 7, 11, 11, 0, 16, 0, 28, 29, 37, 38, 31, 0, 37, 54, 43, 7, 49, 3, 83, 73, 90, 75, 104, 106, 104, 105, 79, 0, 86, 124, 93, 0, 154, 144, 107, 32, 121, 164, 168, 39, 131, 212, 207, 177, 215, 233, 210, 181, 231, 183, 267, 258, 276, 218, 281
Offset: 0

Views

Author

N. J. A. Sloane, Dec 16 2017

Keywords

Comments

Another measure of the binary "early-birdness" of n (cf. A296356, A116700).

Crossrefs

Previous Showing 11-20 of 28 results. Next