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.

Showing 1-3 of 3 results.

A330420 Running totals in A330401.

Original entry on oeis.org

0, 1, 3, 0, 4, 9, 3, 11, 4, 22, 11, 2, 22, 9, 33, 11, 1, 22, 8, 33, 7, 22, 6, 33, 5, 22, 3, 33, 4, 44, 11, 55, 9, 44, 8, 55, 7, 44, 6, 55, 5, 44, 3, 55, 4, 66, 111, 99, 131, 88, 111, 77, 131, 191, 222, 161, 232, 151, 88, 141, 99, 44, 101, 33, 99, 171, 101, 22
Offset: 0

Views

Author

Rémy Sigrist, Dec 14 2019

Keywords

Comments

All terms are palindromes.

Crossrefs

Cf. A330401.

Programs

  • PARI
    See Links section.

Formula

A330401(n) = abs(a(n) - a(n-1)).

A330402 Lexicographically earliest sequence of distinct positive terms with an associate sequence t such that t(0) = 0, and for any n > 0, at least one of t(n-1) - a(n) or t(n-1) + a(n) is a prime number; in case t(n-1) - a(n) is a prime number, set t(n) = t(n-1) - a(n), otherwise set t(n) = t(n-1) + a(n).

Original entry on oeis.org

2, 1, 4, 5, 3, 6, 8, 10, 11, 9, 12, 14, 16, 18, 24, 20, 22, 28, 30, 26, 32, 34, 38, 36, 42, 40, 46, 44, 50, 45, 15, 54, 48, 21, 17, 52, 56, 60, 62, 66, 58, 70, 64, 78, 68, 27, 29, 72, 74, 80, 82, 84, 76, 96, 86, 39, 35, 90, 98, 102, 88, 41, 51, 104, 94, 100
Offset: 1

Views

Author

Rémy Sigrist, Dec 13 2019

Keywords

Comments

This sequence is a variant of A330401.

Examples

			The first terms, alongside t(n), are:
  n   a(n)  t(n)
  --  ----  ----
   0  N/A      0
   1     2     2
   2     1     3
   3     4     7
   4     5     2
   5     3     5
   6     6    11
   7     8     3
   8    10    13
   9    11     2
  10     9    11
  11    12    23
  12    14    37
		

Crossrefs

Cf. A330401, A330421 (running totals).

Programs

  • PARI
    See Links section.

A330403 Lexicographically earliest sequence of distinct positive terms with an associate sequence t such that t(0) = 0, and for any n > 0, at least one of t(n-1) - a(n) or t(n-1) + a(n) is a square; in case t(n-1) - a(n) is a square, set t(n) = t(n-1) - a(n), otherwise set t(n) = t(n-1) + a(n).

Original entry on oeis.org

1, 3, 4, 9, 5, 12, 7, 8, 15, 16, 25, 11, 13, 24, 21, 32, 20, 33, 40, 27, 28, 17, 19, 36, 39, 56, 45, 35, 48, 49, 64, 55, 72, 63, 23, 57, 60, 77, 65, 84, 44, 52, 29, 31, 68, 37, 80, 41, 76, 99, 81, 95, 51, 69, 87, 105, 123, 43, 88, 47, 92, 141, 96, 129, 111, 93
Offset: 1

Views

Author

Rémy Sigrist, Dec 13 2019

Keywords

Comments

This sequence is a variant of A330385.

Examples

			The first terms, alongside t(n), are:
  n   a(n)  t(n)
  --  ----  ----
   0  N/A      0
   1     1     1
   2     3     4
   3     4     0
   4     9     9
   5     5     4
   6    12    16
   7     7     9
   8     8     1
   9    15    16
  10    16     0
  11    25    25
  12    11    36
		

Crossrefs

See A330401 for similar sequences.
Cf. A330385, A330422 (running totals).

Programs

  • PARI
    See Links section.
Showing 1-3 of 3 results.