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-13 of 13 results.

A262288 a(0)=0; thereafter add the smallest positive number that is not a substring.

Original entry on oeis.org

0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 12, 15, 17, 19, 21, 24, 25, 26, 27, 28, 29, 30, 31, 33, 34, 35, 36, 37, 38, 39, 40, 41, 43, 44, 45, 46, 47, 48, 49, 50, 51, 53, 54, 55, 56, 57, 58, 59, 60, 61, 63, 64, 65, 66, 67, 68, 69, 70, 71, 73, 74, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 93, 94, 95, 96, 97, 98, 99, 100, 102, 105, 107
Offset: 0

Views

Author

N. J. A. Sloane, Sep 19 2015

Keywords

Examples

			In a(13) = 19 we can see a 1 but no 2, so a(14) = 19+2 = 21. Now we can see a 1 and a 2 but no 3, so a(15) = 21+3 = 24.
		

Crossrefs

Decimal analog of A260273.
Cf. A261793.

Programs

  • Mathematica
    r[n_]:=Rest[Subsets[IntegerDigits[n]]];
    s[n_]:=Union[FromDigits/@r[n]];firstN[0]=1;firstN[1]=2;
    firstN[n_]:=Min[Select[Range[Last[s[n]]],FreeQ[s[n],#]&]];
    nextTerm[n_]:=n+firstN[n];FoldList[nextTerm[#]&,0,Range@87] (* Ivan N. Ianakiev, Sep 20 2015 *)

Formula

a(n) = A261793(n) for n >= 1. - Georg Fischer, Oct 30 2018

Extensions

Typo in a(61) corrected by Ivan N. Ianakiev, Sep 20 2015

A261926 First differences of A261416.

Original entry on oeis.org

3, 3, 3, 6, 3, 3, 6, 9, 5, 6, 5, 7, 9, 5, 6, 3, 3, 6, 9, 5, 7, 5, 9, 3, 5, 3, 6, 3, 3, 6, 10, 6, 7, 7, 9, 5, 5, 5, 7, 7, 5, 5, 9, 9, 9, 5, 6, 3, 3, 6, 9, 5, 6, 5, 7, 10, 6, 7, 3, 6, 9, 7, 7, 9
Offset: 1

Views

Author

N. J. A. Sloane, Sep 17 2015

Keywords

Crossrefs

A262290 a(0)=0; thereafter, add the smallest nonzero binary number, not a power of 2, that is not a substring of the binary expansion of a(n).

Original entry on oeis.org

0, 3, 8, 11, 17, 20, 23, 29, 38, 43, 49, 54, 61, 70, 75, 81, 84, 87, 93, 102, 107, 114, 119, 128, 131, 136, 139, 145, 148, 151, 157, 167, 173, 180, 187, 196, 201, 206, 211, 218, 225, 230, 235, 244, 253, 262, 267, 273, 276, 279, 285, 294, 299, 305, 310, 317, 327, 333, 340, 343, 349, 358, 365, 372, 381
Offset: 0

Views

Author

N. J. A. Sloane, Sep 19 2015

Keywords

Crossrefs

Identical to A261416 except for first two terms.

Formula

a(n+1) = a(n) + A262289(a(n)).
Previous Showing 11-13 of 13 results.