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

A122542 Triangle T(n,k), 0 <= k <= n, read by rows, given by [0, 2, -1, 0, 0, 0, 0, 0, ...] DELTA [1, 0, 0, 0, 0, 0, 0, 0, ...] where DELTA is the operator defined in A084938.

Original entry on oeis.org

1, 0, 1, 0, 2, 1, 0, 2, 4, 1, 0, 2, 8, 6, 1, 0, 2, 12, 18, 8, 1, 0, 2, 16, 38, 32, 10, 1, 0, 2, 20, 66, 88, 50, 12, 1, 0, 2, 24, 102, 192, 170, 72, 14, 1, 0, 2, 28, 146, 360, 450, 292, 98, 16, 1, 0, 2, 32, 198, 608, 1002, 912, 462, 128, 18, 1
Offset: 0

Views

Author

Philippe Deléham, Sep 19 2006, May 28 2007

Keywords

Comments

Riordan array (1, x*(1+x)/(1-x)). Rising and falling diagonals are the tribonacci numbers A000213, A001590.

Examples

			Triangle begins:
  1;
  0, 1;
  0, 2,  1;
  0, 2,  4,   1;
  0, 2,  8,   6,   1;
  0, 2, 12,  18,   8,    1;
  0, 2, 16,  38,  32,   10,   1;
  0, 2, 20,  66,  88,   50,  12,   1;
  0, 2, 24, 102, 192,  170,  72,  14,   1;
  0, 2, 28, 146, 360,  450, 292,  98,  16,  1;
  0, 2, 32, 198, 608, 1002, 912, 462, 128, 18, 1;
		

Crossrefs

Other versions: A035607, A113413, A119800, A266213.
Sums include: A000007, A001333 (row), A001590 (diagonal), A007483, A057077 (signed row), A078016 (signed diagonal), A086901, A091928, A104934, A122558, A122690.

Programs

  • Haskell
    a122542 n k = a122542_tabl !! n !! k
    a122542_row n = a122542_tabl !! n
    a122542_tabl = map fst $ iterate
       (\(us, vs) -> (vs, zipWith (+) ([0] ++ us ++ [0]) $
                          zipWith (+) ([0] ++ vs) (vs ++ [0]))) ([1], [0, 1])
    -- Reinhard Zumkeller, Jul 20 2013, Apr 17 2013
    
  • Magma
    function T(n, k) // T = A122542
      if k eq 0 then return 0^n;
      elif k eq n then return 1;
      else return T(n-1,k) + T(n-1,k-1) + T(n-2,k-1);
      end if;
    end function;
    [T(n, k): k in [0..n], n in [0..12]]; // G. C. Greubel, Oct 27 2024
  • Mathematica
    CoefficientList[#, y]& /@ CoefficientList[(1-x)/(1 - (1+y)x - y x^2) + O[x]^11, x] // Flatten (* Jean-François Alcover, Sep 09 2018 *)
    (* Second program *)
    T[n_, k_]:= T[n, k]= If[k==n, 1, If[k==0, 0, T[n-1,k-1] +T[n-1,k] +T[n-2,k- 1] ]]; (* T = A122542 *)
    Table[T[n,k], {n,0,12}, {k,0,n}]//Flatten (* G. C. Greubel, Oct 27 2024 *)
  • Sage
    def A122542_row(n):
        @cached_function
        def prec(n, k):
            if k==n: return 1
            if k==0: return 0
            return prec(n-1,k-1)+2*sum(prec(n-i,k-1) for i in (2..n-k+1))
        return [prec(n, k) for k in (0..n)]
    for n in (0..10): print(A122542_row(n)) # Peter Luschny, Mar 16 2016
    

Formula

Sum_{k=0..n} x^k*T(n,k) = A000007(n), A001333(n), A104934(n), A122558(n), A122690(n), A091928(n) for x = 0, 1, 2, 3, 4, 5. - Philippe Deléham, Jan 25 2012
Sum_{k=0..n} 3^(n-k)*T(n,k) = A086901(n).
Sum_{k=0..n} 2^(n-k)*T(n,k) = A007483(n-1), n >= 1. - Philippe Deléham, Oct 08 2006
T(2*n, n) = A123164(n).
T(n, k) = T(n-1,k) + T(n-1,k-1) + T(n-2,k-1), n > 1. - Philippe Deléham, Jan 25 2012
G.f.: (1-x)/(1-(1+y)*x-y*x^2). - Philippe Deléham, Mar 02 2012
From G. C. Greubel, Oct 27 2024: (Start)
Sum_{k=0..n} (-1)^k*T(n, k) = A057077(n).
Sum_{k=0..floor(n/2)} T(n-k, k) = A001590(n+1).
Sum_{k=0..floor(n/2)} (-1)^k*T(n-k, k) = A078016(n). (End)

A069892 Sequence around outside of single zero roulette wheel.

Original entry on oeis.org

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

Views

Author

Brett Stevens (brett(AT)math.carleton.ca), Apr 09 2002

Keywords

Comments

The roulette wheel and the dartboard are good candidates for what might be considered an "Anti-Gray Code", a sequence of objects from a combinatorial family such that nearby elements are far apart in some metric.

Crossrefs

A069893 Sequence around outside of double zero roulette wheel.

Original entry on oeis.org

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

Views

Author

Brett Stevens (brett(AT)math.carleton.ca), Apr 09 2002

Keywords

Comments

Double zeros, "00", occur before 27s in the sequence but have been replaced here by 0's.
The roulette wheel and the dartboard are good candidates for what might be considered an "Anti-Gray Code", a sequence of objects from a combinatorial family such that nearby elements are far apart in some metric.

References

  • G. Simmons, An Application of Maximum-Minimum Distance Circuits on Hypercubes, Lecture Notes in Mathematics, Vol. 686 (1977) pp. 290-299.

Crossrefs

A003833 Sectors around outside of dartboard.

Original entry on oeis.org

20, 1, 18, 4, 13, 6, 10, 15, 2, 17, 3, 19, 7, 16, 8, 11, 14, 9, 12, 5, 20, 1, 18, 4, 13, 6, 10, 15, 2, 17, 3, 19, 7, 16, 8, 11, 14, 9, 12, 5, 20, 1, 18, 4, 13, 6, 10, 15, 2, 17, 3, 19, 7, 16, 8, 11, 14, 9, 12, 5, 20, 1, 18, 4, 13, 6, 10, 15, 2, 17, 3, 19, 7, 16, 8, 11, 14, 9
Offset: 1

Views

Author

Keywords

Comments

Known as the standard, London or clock dartboard.
Periodic with period 20. - Paolo Xausa, Jul 14 2025

References

  • Marilyn vos Savant, "Ask Marilyn," in 'Parade, The Sunday Newspaper Magazine,' page 12, Sunday, Jan 12, 2003.

Crossrefs

Programs

  • Mathematica
    PadRight[{}, 100, {20, 1, 18, 4, 13, 6, 10, 15, 2, 17, 3, 19, 7, 16, 8, 11, 14, 9, 12, 5}] (* Paolo Xausa, Jul 14 2025 *)

A104158 Numbers on a standard, London, or clock dartboard read in a counterclockwise direction.

Original entry on oeis.org

20, 5, 12, 9, 14, 11, 8, 16, 7, 19, 3, 17, 2, 15, 10, 6, 13, 4, 18, 1, 20, 5, 12, 9, 14, 11, 8, 16, 7, 19, 3, 17, 2, 15, 10, 6, 13, 4, 18, 1, 20, 5, 12, 9, 14, 11, 8, 16, 7, 19, 3, 17, 2, 15, 10, 6, 13, 4, 18, 1, 20, 5, 12, 9, 14, 11, 8, 16, 7, 19, 3, 17, 2, 15, 10, 6
Offset: 0

Views

Author

Andrew G. West (WestA(AT)wlu.edu), Mar 09 2005

Keywords

Comments

Sequence is periodic with period 20. - Michel Marcus, Jul 26 2013

References

  • GCHQ, The GCHQ Puzzle Book, Penguin, 2016. See page 82.

Crossrefs

Programs

  • Mathematica
    PadRight[{}, 100, {20, 5, 12, 9, 14, 11, 8, 16, 7, 19, 3, 17, 2, 15, 10, 6, 13, 4, 18, 1}] (* Paolo Xausa, Jul 17 2025 *)

A244512 The angle of the center of each numbered sector of a standard competition dartboard.

Original entry on oeis.org

288, 54, 90, 324, 252, 0, 126, 162, 216, 18, 180, 234, 342, 198, 36, 144, 72, 306, 108, 270
Offset: 1

Views

Author

Philip Mizzi, Jun 29 2014

Keywords

Comments

A standard dartboard is divided into 20 sectors each subtending an angle of 18 degrees.
The sequence is generated by considering the positive x-axis to be running through the center of the sector numbered "6" and defining this to be 0 degrees. The angular position of each sector is then defined relative to this position through a clockwise rotation of a line collinear with x until the line divides the sector of interest. The numbers are then sectors are ordered from 1 to 20 generating the full sequence.
It is a mere formality to fully define the bounds of each sector by adding and subtracting 9 degrees from each of the numbers in the sequence.

Crossrefs

Formula

n = A003833(a(n)/18+6). - Jens Kruse Andersen, Jul 19 2014

Extensions

Incorrect term removed by Jens Kruse Andersen, Jul 19 2014

A117883 Alternate numbers on a dartboard, read clockwise.

Original entry on oeis.org

1, 4, 6, 15, 17, 19, 16, 11, 9, 5
Offset: 1

Views

Author

Danny Williamson (daniel.williamson(AT)durham.ac.uk), May 02 2006

Keywords

Comments

These usually appear as beds with white backgrounds with green doubles beds.

Crossrefs

A338551 Number of ways to make a checkout score of n in darts.

Original entry on oeis.org

0, 1, 1, 4, 7, 14, 20, 31, 39, 55, 65, 86, 96, 126, 133, 171, 179, 223, 228, 286, 283, 352, 348, 422, 408, 497, 467, 569, 534, 642, 594, 720, 654, 791, 719, 863, 775, 942, 831, 1012, 894, 1082, 945, 1159, 991, 1216, 1037, 1263, 1062, 1311, 1081, 1340, 1110, 1366
Offset: 1

Views

Author

Carmen Bruni, Nov 02 2020

Keywords

Comments

In other words, the number of ways to achieve a score of n using at most 3 darts and finishing on a double. The maximum checkout score is 170, so this is a finite sequence.

Crossrefs

Programs

  • PARI
    seq()={my(s=x*(1-x^20)/(1-x)+x^25, d=subst(s,x,x^2), g=s+d+subst(s-x^25,x,x^3)); Vecrev((1+g+g^2)*d/x)} \\ Andrew Howroyd, Nov 04 2020
  • Python
    def darts(n):
      if n > 170 or n <= 1:
        return 0
      ans = 0
      singles = list(range(1, 21)) + [25]
      doubles = list(map(lambda x: 2*x, singles))
      triples = list(map(lambda x: 3*x, singles[:-1]))
      throws = singles+doubles+triples
      for i in range(len(throws)):
        for j in range(len(throws)):
          for k in range(len(doubles)):
            dart1 = throws[i]
            dart2 = throws[j]
            dart3 = doubles[k]
            if dart1 + dart2 + dart3 == n:
              ans += 1
        for j in range(len(doubles)):
          dart1 = throws[i]
          dart2 = doubles[j]
          if dart1 + dart2 == n:
            ans += 1
      return ans + (n in doubles)
    for i in range(1,171):
      print(darts(i))
    

A244196 Cumulative angle at the center of successive numbered sectors of a standard competition dartboard, with numbers traversed in order.

Original entry on oeis.org

288, 414, 450, 684, 972, 1080, 1206, 1242, 1296, 1458, 1620, 1674, 1782, 1998, 2196, 2304, 2592, 2826, 2988, 3150
Offset: 1

Views

Author

Philip Mizzi, Jul 21 2014

Keywords

Comments

A standard dartboard is divided into 20 sectors each subtending an angle of 18 degrees.
The sequence is generated by considering the positive X-axis to be running through the center of the sector numbered "6" and defining this to be 0 degrees. A line collinear with X is then rotated clockwise until each numbered sector is traversed through the center of the sector in question. The total number of degrees is summed as each sector is traversed.

Crossrefs

Showing 1-9 of 9 results.