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.

User: Sean Oneil

Sean Oneil's wiki page.

Sean Oneil has authored 2 sequences.

A259566 Numbers following gaps in the sequence of base-3 numbers that don't contain 0.

Original entry on oeis.org

1, 4, 7, 13, 16, 22, 25, 40, 43, 49, 52, 67, 70, 76, 79, 121, 124, 130, 133, 148, 151, 157, 160, 202, 205, 211, 214, 229, 232, 238, 241, 364, 367, 373, 376, 391, 394, 400, 403, 445, 448, 454, 457, 472, 475, 481, 484, 607, 610, 616, 619, 634, 637, 643, 646, 688, 691, 697, 700, 715, 718, 724, 727, 1093, 1096, 1102, 1105, 1120
Offset: 1

Author

Sean Oneil, Jun 30 2015

Keywords

Comments

Partial sums for the convergent modified harmonic series in base 3 excluding 0 = Sum of 1/a(n) + 1/(a(n) + 1) = Sum of (2*a(n) + 1)/(a(n)*(a(n) + 1)).

Examples

			Pattern of numbers of skipped terms (numbers in base 3 with at least one zero) is 1 (3 = 10_3), 1 (6 = 20_3), 3+1 (9 = 100_3, 10 = 101_3, 11 = 102_3, 12 = 110_3), 1, 3+1, 1, 9+3+1, 1, 3+1, 1, 9+3+1, 1, 3+1, 1, 27+9+3+1, ...
		

Crossrefs

Cf. A032924.
Subset of A016777 (congruent to 1 mod 3).
Each term is one more than each number that follows a gap in A081605.

Programs

  • PARI
    lista(nn)=prec0 = 1; for(n=1, nn, if (vecmin(digits(n, 3)), if (prec0, print1(n,, ", ")); prec0 = 0, prec0 = 1);); \\ Michel Marcus, Aug 03 2015
    
  • Python
    def A259566(n): return int(bin(m:=n)[3:],3)*3 + (3**m.bit_length()-1>>1) if n>1 else 1 # Chai Wah Wu, Oct 13 2023

Formula

a(n) = A032924(2n - 1).

A259568 Numbers following gaps in the sequence of base-4 numbers that don't contain 0.

Original entry on oeis.org

1, 5, 9, 13, 21, 25, 29, 37, 41, 45, 53, 57, 61, 85, 89, 93, 101, 105, 109, 117, 121, 125, 149, 153, 157, 165, 169, 173, 181, 185, 189, 213, 217, 221, 229, 233, 237, 245, 249, 253, 341, 345, 349, 357, 361, 365, 373, 377, 381, 405, 409, 413, 421, 425, 429, 437, 441, 445, 469, 473, 477, 485, 489, 493, 501, 505, 509, 597, 601, 605
Offset: 1

Author

Sean Oneil, Jun 30 2015

Keywords

Comments

Partial sums for the convergent modified harmonic series in base 4 excluding 0 = Sum of 1/a(n) + 1/(a(n) + 1) + 1/(a(n) + 2) = Sum of (3*a(n)^2 + 6*a(n) + 2)/(a(n)*(a(n) + 1)*(a(n) + 2)).

Examples

			Pattern of numbers of skipped terms (numbers in base 4 with at least one zero) is 1 (4 = 10_4), 1 (8 = 20_4), 1 (12 = 30_4), 4+1 (16 = 100_4, 17 = 101_4, 18 = 102_4, 19 = 103_4, 20 = 110_4), 1, 1, 4+1, 1, 1, 4+1, 1, 1, 16+4+1, ...
		

Crossrefs

Subset of A016813 (congruent to 1 mod 4). a(n) = A023705(3n - 2). Each term is one more than the numbers that follow gaps in A196032.

Programs

  • PARI
    lista(nn)=prec0 = 1; for(n=1, nn, if (vecmin(digits(n, 4)), if (prec0, print1(n,, ", ")); prec0 = 0, prec0 = 1);); \\ Michel Marcus, Aug 03 2015