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

A177020 Define two triangular arrays by: B(0,0)=C(0,0)=1, B(0,r)=C(0,r)=0 for r>0, C(t,-1)=C(t,0); and for t,r >= 0, B(t+1,r)=C(t,r-1)+2C(t,r)-B(t,r), C(t+1,r)=B(t+1,r)+2B(t+1,r+1)-C(t,r). Sequence gives array C(t,r) read by rows.

Original entry on oeis.org

1, 3, 1, 12, 5, 1, 53, 25, 7, 1, 247, 126, 42, 9, 1, 1192, 642, 239, 63, 11, 1, 5897, 3306, 1330, 400, 88, 13, 1, 29723, 17187, 7327, 2419, 617, 117, 15, 1, 152020, 90099, 40187, 14233, 4033, 898, 150, 17, 1
Offset: 0

Views

Author

N. J. A. Sloane, Dec 08 2010

Keywords

Examples

			Triangle begins
1
3    1
12   5   1
53   25  7   1
247  126 42  9  1
1192 642 239 63 11 1
...
		

Crossrefs

Cf. A177011.

Programs

  • Maple
    B:=proc(t,r)global b:if(not type(b[t,r],integer))then if(t=0 and r=0)then b[t,r]:=1:elif(t=0)then b[t,r]:=0:else b[t,r]:=C(t-1,r-1)+2*C(t-1,r)-B(t-1,r):fi:fi:return b[t,r]:end:
    C:=proc(t,r)global c:if(not type(c[t,r],integer))then if(r=-1)then return C(t,0):fi:if(t=0 and r=0)then c[t,r]:=1:elif(t=0)then c[t,r]:=0:else c[t,r]:=B(t,r)+2*B(t,r+1)-C(t-1,r):fi:fi:return c[t,r]:end:
    for t from 0 to 8 do for r from 0 to t do print(C(t,r)):od:od: # Nathaniel Johnston, Apr 15 2011
  • Mathematica
    bb[t_, r_] := Module[{}, If[Not[IntegerQ[b[t, r]]], Which[t == 0 && r == 0, b[t, r] = 1, t == 0, b[t, r] = 0, True, b[t, r] = cc[t-1, r-1] + 2*cc[t-1, r] - bb[t-1, r]]]; Return[b[t, r]]]; cc[t_, r_] := Module[{}, If[Not[IntegerQ[c[t, r]]], If[r == -1, Return[cc[t, 0]], Which[t == 0 && r == 0, c[t, r] = 1, t == 0, c[t, r] = 0, True, c[t, r] = bb[t, r] + 2*bb[t, r+1] - cc[t-1, r]]]]; Return[c[t, r]]]; Table[cc[t, r], {t, 0, 8}, {r, 0, t}] // Flatten (* Jean-François Alcover, Jan 08 2014, translated from Maple *)

Extensions

a(15)-a(44) from Nathaniel Johnston, Apr 15 2011

A177008 Primes of the form n^(n-1)+n-1.

Original entry on oeis.org

3, 11, 67, 1000000009, 550618520345910837374536871905139185678862431
Offset: 1

Views

Author

Shirin Alam Holi (mymtain(AT)yahoo.com), May 12 2010

Keywords

Comments

This sequence is a subsequence of A173235. Next term, if it exist
has more than 11111 digits.

Examples

			p=10^9+9 is prime, so p is in the sequence.
		

Crossrefs

Programs

  • Mathematica
    Do[If[PrimeQ[n^(n-1)+n-1], Print[n^(n-1)+n-1]], {n,3174}]

A177007 Primes of the form n^(n-1)+n+1.

Original entry on oeis.org

3, 5, 13, 631, 5242880000000000000000021
Offset: 1

Views

Author

Farzad Kamanger (mymtain(AT)yahoo.com), May 11 2010

Keywords

Comments

Next such prime if it exists has more than 22222 digits.

Examples

			For the prime p=5242880000000000000000021 we have p=20^19+21, so p
is in the sequence. p is the only known prime of the form (q+1)^q+q+2
where q is an odd prime.
		

Crossrefs

Programs

  • Mathematica
    Do[If[PrimeQ[n^(n-1)+n+1], Print[n^(n-1)+n+1]], {n,5894}]

A197956 Even-index Fibonacci partition triangle read by rows.

Original entry on oeis.org

1, 1, 1, 2, 1, 3, 1, 4, 7, 1, 5, 12, 1, 6, 18, 29, 1, 7, 25, 53, 1, 8, 33, 85, 130, 1, 9, 42, 126, 247, 1, 10, 52, 177, 414, 611, 1, 11, 63, 239, 642, 1192, 1, 12, 75, 313, 943, 2062, 2965, 1, 13, 88, 400, 1330, 3306, 5897, 1, 14, 102, 501, 1817, 5023, 10447, 14726
Offset: 1

Views

Author

Claus Michael Ringel, Oct 24 2011

Keywords

Comments

These are the entries of a triangle which starts
1,
1,
1, 2,
1, 3,
1, 4, 7,
1, 5, 12,
1, 6, 18, 29,...
The numbers d(i,n) in the row with index n are recursively defined for 0 <= n and 0 <= i <= n/2, by d(0,n) = 1 for all n, and d(i,n) = 2d(i-1,n-1) + d(i,n-1) - d(i-1,n-2) for 0 < i < n/2, and d(i,2i) = 3d(i-1,n-1) - d(i-1,n-2).
The numbers d(i,n-1) and d(i,n) form the dimension vector of the Fibonacci modules P(n), these are indecomposable quiver representations of the 3-regular tree with bipartite orientation.
A linear combination of the row n (with coefficients either 1 or of the form 3*2^t) gives a partition of the Fibonacci number f_{2n+2}, see A000045 and A001906.
The sequence A177011 is obtained by reading the rows with even index from the right.
The sequence A177020 is obtained by reading the rows with odd index from the right.
The sequence of the entries in the last column of the triangle, with even row index is recorded as A132262, the sequence of the entries in the last column of the triangle, with odd row index is A110122 (Number of Delannoy paths of length n with no EE's crossing the line y=x)
The sequence A197957 is obtained by taking differences of pairs of numbers in neighboring rows of the triangle.
Showing 1-4 of 4 results.