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.

A175921 Period 5: repeat [1, 2, 2, -1, 1].

Original entry on oeis.org

1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1
Offset: 1

Views

Author

Jaroslav Krizek, Oct 17 2010

Keywords

Crossrefs

Programs

Extensions

Edited by Joerg Arndt, Sep 16 2013

A262734 Period 16: repeat (1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2).

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9
Offset: 0

Views

Author

Ilya Gutkovskiy, Sep 29 2015

Keywords

Comments

Decimal expansion of 111111112/900000009.
For n which lies in the interval [16*(k-1), 8*(2*k-1)], where k>0 -> pattern {1, 2, 3, 4, 5, 6, 7, 8, 9}; for n which lies in the interval [16*k - 7, 16*k - 1], where k>0 -> pattern {8, 7, 6, 5, 4, 3, 2}.

Crossrefs

Programs

  • Magma
    &cat[[1,2,3,4,5,6,7,8,9,8,7,6,5,4,3,2]: n in [0..10]]; // Vincenzo Librandi, Sep 29 2015
    
  • Mathematica
    LinearRecurrence[{1, 0, 0, 0, 0, 0, 0, -1, 1}, {1, 2, 3, 4, 5, 6, 7, 8, 9}, 120] (* Vincenzo Librandi, Sep 29 2015 *)
  • PARI
    Vec(-(2*x^8+x^7+x^6+x^5+x^4+x^3+x^2+x+1)/((x-1)*(x^8+1)) + O(x^100)) \\ Colin Barker, Sep 29 2015
    
  • PARI
    111111112/900000009. \\ Altug Alkan, Sep 29 2015
    
  • PARI
    vector(200, n, default(realprecision, n+2); floor(111111112/900000009*10^n)%10) \\ Altug Alkan, Nov 12 2015

Formula

-1 + a(16*(k - 1)) = -2 + a(8*k + 3*(-1)^k - 4) = -3 + a(2*(4*k + (-1)^k - 2)) = -4 + a(8*k + (-1)^k - 4) = -5 + a(4*(2*k - 1)) = -6 + a(8*k - (-1)^k - 4) = -7 + a(-2*(-4*k + (-1)^k + 2)) = -8 + a(8*k - 3*(-1)^k - 4) = -9 + a(8*(2*k - 11)) = 0, for k>0.
a(0) = 1, a(n) = a(n+1) - 1, for 16*(k - 1) <= n < 8*(2*k - 1), and a(n) = a(n + 1) + 1, for 8*(2*k - 1) <= n < 16*k, where k>0.
From Colin Barker, Sep 29 2015: (Start)
a(n) = a(n-1) - a(n-8) + a(n-9) for n>8.
G.f.: -(2*x^8+x^7+x^6+x^5+x^4+x^3+x^2+x+1) / ((x-1)*(x^8+1)). (End)

A321301 Lexicographically last sequence of positive integers whose terms can be grouped and summed to produce the natural numbers as well as the prime numbers.

Original entry on oeis.org

1, 1, 1, 2, 1, 4, 5, 2, 4, 7, 8, 5, 4, 10, 3, 8, 11, 1, 13, 9, 5, 15, 9, 7, 17, 7, 11, 19, 7, 13, 21, 7, 15, 23, 5, 19, 25, 3, 23, 27, 3, 25, 29, 5, 25, 31, 5, 27, 33, 7, 27, 35, 9, 27, 37, 9, 29, 39, 11, 29, 41, 13, 29, 43, 17, 27, 45, 25, 21, 47, 33, 15, 49
Offset: 1

Views

Author

Rémy Sigrist, Nov 03 2018

Keywords

Comments

More formally:
- let S be the set of sequences of positive integers with positive indices,
- for any u and v in S, the terms of u can be grouped and summed to produce v iff there is an element w in S such that for any n > 0:
v(n) = Sum_{i=1..w(n)} u(i + Sum_{j=1..n-1} w(j)),
or: Sum_{i=1..Sum_{j=1..n} w(j)} u(i) = Sum_{k=1..n} v(k),
(the sequence w gives the number of terms in each group)
- the set S with the binary relation R "u can be grouped and summed to produce v" is a partially ordered set,
- in particular, A028356 is R-related to A000027,
- for any u in S, A000012 is R-related to u (A000012 is the least element of S with respect to R),
- for any u and v, let L(u, v) denote the lexicographically last element of S that is R-related both to u and to v,
- for any u, v and w in S, the function L satisfies:
L(u, u) = u,
L(u, v) = L(v, u),
L(u, L(v, w)) = L(L(u, v), w),
L(A000012, u) = A000012,
- this sequence corresponds to L(A000027, A000040).

Examples

			The first terms of this sequence, alongside the groups summing to the first natural numbers and to the first prime numbers, are:
                  +-+---+-----+-------+---------+-----------+-------------+
- Natural numbers |1| 2 |  3  |   4   |    5    |     6     |      7      | ...
                  +-+-+-+---+-+-------+---------+---+-------+-------------+
- This sequence   |1|1|1| 2 |1|   4   |    5    | 2 |   4   |      7      | ...
                  +-+-+-+---+-+-------+---------+---+-------+-------------+
- Prime numbers   | 2 |  3  |    5    |      7      |          11         | ...
                  +---+-----+---------+-------------+---------------------+
		

Crossrefs

Programs

  • PARI
    See Links section.
Previous Showing 11-13 of 13 results.