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.

A274650 Triangle read by rows: T(n,k), (0 <= k <= n), in which each term is the least nonnegative integer such that no row, column, diagonal, or antidiagonal contains a repeated term.

Original entry on oeis.org

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

Views

Author

Omar E. Pol, Jul 02 2016

Keywords

Comments

Similar to A274528, but the triangle here is a right triangle.
The same rule applied to an equilateral triangle gives A274528.
By analogy, the offset for both rows and columns is the same as the offset of A274528.
We construct the triangle by reading from left to right in each row, starting with T(0,0) = 0.
Presumably every diagonal and every column is also a permutation of the nonnegative integers, but the proof does not seem so straightforward. Of course neither the rows nor the antidiagonals are permutations of the nonnegative integers, since they are finite in length.
Omar E. Pol's conjecture that every column and every diagonal of the triangle is a permutation of the nonnegative integers is true: see the link. - N. J. A. Sloane, Jun 07 2017
It appears that the numbers generally appear for the first time in or near the right border of the triangle.
Theorem 1: the middle diagonal gives A000004 (the zero sequence).
Proof: T(0,0) = 0 by definition. For the next rows we have that in row 1 there are no zeros because the first term belongs to a column that contains a zero and the second term belongs to a diagonal that contains a zero. In row 2 the unique zero is T(2,1) = 0 because the preceding term belongs to a column that contains a zero and the following term belongs to a diagonal that contains a zero. Then we have two recurrences for all rows of the triangle:
a) If T(n,k) = 0 then row n+1 does not contain a zero because every term belongs to a column that contains a zero or it belongs to a diagonal that contains a zero.
b) If T(n,k) = 0 the next zero is T(n+2,k+1) because every preceding term in row n+2 is a positive integer because it belongs to a column that contains a zero and, on the other hand, the column, the diagonal and the antidiagonal of T(n+2,k+1) do not contain zeros.
Finally, since both T(n,k) = 0 and T(n+2,k+1) = 0 are located in the middle diagonal, the other terms of the middle diagonal are zeros, or in other words: the middle diagonal gives A000004 (the zero sequence). QED
Theorem 2: all zeros are in the middle diagonal.
Proof: consider the first n rows of the triangle. Every element located above or at the right-hand side of the middle diagonal must be positive because it belongs to a diagonal that contains one of the zeros of the middle diagonal. On the other hand every element located below the middle diagonal must be positive because it belongs to a column that contains one of the zeros of the middle diagonal, hence there are no zeros outside of the middle diagonal, or in other words: all zeros are in the middle diagonal. QED
From Hartmut F. W. Hoft, Jun 12 2017: (Start)
T(2k,k) = 0, for all k >= 0, and T(n,{(n-1)/2,(n+2)/2,(n-2)/2,(n+1)/2}) = 1, for all n >= 0 with n mod 8 = {1,2,4,5} respectively, and no 0's or 1's occur in other positions. The triangle of positions of 0's and 1's for this sequence is the triangle in the Comment section of A274651 with row and column indices and values shifted down by one.
The sequence of rows containing 1's is A047613 (n mod 8 = {1,2,4,5}), those containing only 1's is A016813 (n mod 8 = {1,5}), those containing both 0's and 1's is A047463 (n mod 8 = {2,4}), those containing only 0's is A047451 (n mod 8 = {0,6}), and those containing neither 0's nor 2's is A004767 (n mod 8 = {3,7}).
(End)

Examples

			Triangle begins:
   0;
   1,  2;
   3,  0,  1;
   2,  4,  3,  5;
   5,  1,  0,  2,  3;
   4,  3,  5,  1,  6,  7;
   6,  7,  2,  0,  5,  4,  8;
   8,  5,  9,  4,  7,  2, 10,  6;
   7, 10,  8,  3,  0,  6,  9,  5,  4;
  11,  6, 12,  7,  1,  8,  3, 10,  9, 13;
   9,  8,  4, 11,  2,  0,  1, 12,  6,  7, 10;
  10, 11,  7, 12,  4,  3,  2,  9,  8, 14, 13, 15;
  12,  9, 10,  6,  8,  1,  0, 11,  7,  4, 16, 14, 17;
  ...
From _Omar E. Pol_, Jun 07 2017: (Start)
The triangle may be reformatted as an isosceles triangle so that the zero sequence (A000004) appears in the central column (but note that this is NOT the way the triangle is constructed!):
.
.                    0;
.                  1,  2;
.                3,  0,  1;
.              2,  4,  3,  5;
.            5,  1,  0,  2,  3;
.          4,  3,  5,  1,  6,  7;
.        6,  7,  2,  0,  5,  4,  8;
.     8,   5,  9,  4,  7,  2, 10,  6;
.   7,  10,  8,  3,  0,  6,  9,  5,  4;
...
(End)
		

Crossrefs

Cf. A000004 (middle diagonal).
Cf. A046092 (indices of the zeros).
Every diagonal and every column of the right triangle is a permutation of A001477.
The left and right edges of the right triangle give A286294 and A286295.
Cf. A274651 is the same triangle but with 1 added to every entry.
Other sequences of the same family are A269526, A274528, A274820, A274821, A286297, A288530, A288531.
Sequences mentioned in N. J. A. Sloane's proof are A000170, A274616 and A287864.
Cf. A288384.
See A308179, A308180 for a very similar triangle.

Programs

  • Mathematica
    (* function a274651[] is defined in A274651 *)
    (* computation of rows 0 ... n-1 *)
    a274650[n_] := a274651[n]-1
    Flatten[a274650[13]] (* data *)
    TableForm[a274650[13]] (* triangle *)
    (* Hartmut F. W. Hoft, Jun 12 2017 *)
  • PARI
    See Links section.

Formula

T(n,k) = A274651(n+1,k+1) - 1.

A047546 Numbers that are congruent to {2, 3, 4, 7} mod 8.

Original entry on oeis.org

2, 3, 4, 7, 10, 11, 12, 15, 18, 19, 20, 23, 26, 27, 28, 31, 34, 35, 36, 39, 42, 43, 44, 47, 50, 51, 52, 55, 58, 59, 60, 63, 66, 67, 68, 71, 74, 75, 76, 79, 82, 83, 84, 87, 90, 91, 92, 95, 98, 99, 100, 103, 106, 107, 108, 111, 114, 115, 116, 119, 122, 123
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

Formula

a(n) = A056594(n)+2*n-1. - Zerinvary Lajos, Jul 06 2008
a(n) = A047404(n)+1. - Zerinvary Lajos, Jul 06 2008
G.f.: x*(2-x+2*x^2+x^3) / ((1+x^2)*(x-1)^2). - R. J. Mathar, Oct 08 2011
From Wesley Ivan Hurt, May 20 2016: (Start)
a(n) = 2*a(n-1)-2*a(n-2)+2*a(n-3)-a(n-4) for n>4.
a(n) = (4*n-2+I^(1-n)+I^(n-1))/2 where I=sqrt(-1).
a(2n) = A004767(n-1) for n>0, a(2n-1) = A047463(n). (End)
Sum_{n>=1} (-1)^(n+1)/a(n) = 3*Pi/16 - 3*log(2)/8. - Amiram Eldar, Dec 25 2021

Extensions

More terms from Wesley Ivan Hurt, May 20 2016

A047456 Numbers that are congruent to {0, 2, 3, 4} mod 8.

Original entry on oeis.org

0, 2, 3, 4, 8, 10, 11, 12, 16, 18, 19, 20, 24, 26, 27, 28, 32, 34, 35, 36, 40, 42, 43, 44, 48, 50, 51, 52, 56, 58, 59, 60, 64, 66, 67, 68, 72, 74, 75, 76, 80, 82, 83, 84, 88, 90, 91, 92, 96, 98, 99, 100, 104, 106, 107, 108, 112, 114, 115, 116, 120, 122, 123
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Magma
    I:=[0, 2, 3, 4, 8]; [n le 5 select I[n] else Self(n-1)+Self(n-4)-Self(n-5): n in [1..70]]; // Vincenzo Librandi, May 16 2012
  • Maple
    A047456:=n->(-11-(-1)^n-(2-I)*(-I)^n-(2+I)*I^n+8*n)/4: seq(A047456(n), n=1..100); # Wesley Ivan Hurt, May 31 2016
  • Mathematica
    Select[Range[0,300], MemberQ[{0,2,3,4}, Mod[#,8]]&] (* Vincenzo Librandi, May 16 2012 *)

Formula

G.f.: x^2*(2+x+x^2+4*x^3)/((1-x)^2*(1+x)*(1+x^2)). - Colin Barker, May 13 2012
a(n) = (-11-(-1)^n-(2-i)*(-i)^n-(2+i)*i^n+8*n)/4 where i=sqrt(-1). - Colin Barker, May 14 2012
a(n) = a(n-1) + a(n-4) - a(n-5) for n>5. - Vincenzo Librandi, May 16 2012
a(2k) = A047463(k), a(2k-1) = A047470(k). - Wesley Ivan Hurt, May 31 2016
E.g.f.: (8 + sin(x) - 2*cos(x) + (4*x - 5)*sinh(x) + (4*x - 6)*cosh(x))/2. - Ilya Gutkovskiy, May 31 2016
Sum_{n>=2} (-1)^n/a(n) = (2-sqrt(2))*Pi/16 + log(2)/8 + sqrt(2)*log(sqrt(2)+1)/8. - Amiram Eldar, Dec 21 2021

A047596 Numbers that are congruent to {2, 3, 4, 5} mod 8.

Original entry on oeis.org

2, 3, 4, 5, 10, 11, 12, 13, 18, 19, 20, 21, 26, 27, 28, 29, 34, 35, 36, 37, 42, 43, 44, 45, 50, 51, 52, 53, 58, 59, 60, 61, 66, 67, 68, 69, 74, 75, 76, 77, 82, 83, 84, 85, 90, 91, 92, 93, 98, 99, 100, 101, 106, 107, 108, 109, 114, 115, 116, 117, 122, 123
Offset: 1

Views

Author

Keywords

Comments

For n > 2, a(n) is the decimal value that results from the conversion of n-1 to binary whose last two bits are altered by either of the following rules: 00->010, 01->011, 10->100, 11->101. For example a(10) = 19 because 10 - 1 = 9 = '10'01'->'10'011' = 19. - Franck Maminirina Ramaharo, Jul 25 2018

Crossrefs

Programs

  • GAP
    Filtered([1..130],n->n mod 8=2 or n mod 8=3 or n mod 8=4 or n mod 8=5); # Muniru A Asiru, Jul 27 2018
  • Magma
    [n: n in [1..120] | n mod 8 in [2..5]]; // Bruno Berselli, Jul 17 2012
    
  • Maple
    A047596:=n->2*n-1-I^(n*(n+1))-(1+I^(2*n))/2: seq(A047596(n), n=1..100); # Wesley Ivan Hurt, Jun 01 2016
  • Mathematica
    Select[Range[120], MemberQ[{2, 3, 4, 5}, Mod[#, 8]] &] (* or *) LinearRecurrence[{1, 0, 0, 1, -1}, {2, 3, 4, 5, 10}, 60] (* Bruno Berselli, Jul 17 2012 *)
  • Maxima
    makelist(2*n-1-%i^(n*(n+1))-(1+(-1)^n)/2,n,1,60); /* Bruno Berselli, Jul 17 2012 */
    
  • PARI
    Vec((2+x+x^2+x^3+3*x^4)/((1+x)*(1-x)^2*(1+x^2))+O(x^60)) \\ Bruno Berselli, Jul 17 2012
    

Formula

G.f.: x*(2+x+x^2+x^3+3*x^4)/((1+x)*(1-x)^2*(1+x^2)). [Bruno Berselli, Jul 17 2012]
a(n) = 2*n-1-i^(n*(n+1))-(1+(-1)^n)/2, where i=sqrt(-1). [Bruno Berselli, Jul 17 2012]
a(n) = 2n - A010873(n-1). - Wesley Ivan Hurt, Jul 07 2013
From Wesley Ivan Hurt, Jun 01 2016: (Start)
a(n) = a(n-1) + a(n-4) - a(n-5) for n>5.
a(2k) = A047621(k), a(2k-1) = A047463(k). (End)
E.g.f.: 3 + sin(x) - cos(x) + (2*x - 1)*sinh(x) + 2*(x - 1)*cosh(x). - Ilya Gutkovskiy, Jun 02 2016
Sum_{n>=1} (-1)^(n+1)/a(n) = Pi/16 - (sqrt(2)+3)*log(2)/8 + sqrt(2)*log(sqrt(2)+2)/4. - Amiram Eldar, Dec 25 2021

A047417 Numbers that are congruent to {2, 3, 4, 6} mod 8.

Original entry on oeis.org

2, 3, 4, 6, 10, 11, 12, 14, 18, 19, 20, 22, 26, 27, 28, 30, 34, 35, 36, 38, 42, 43, 44, 46, 50, 51, 52, 54, 58, 59, 60, 62, 66, 67, 68, 70, 74, 75, 76, 78, 82, 83, 84, 86, 90, 91, 92, 94, 98, 99, 100, 102, 106, 107, 108, 110, 114, 115, 116, 118, 122, 123
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

Formula

G.f.: x*(2+x+x^2+2*x^3+2*x^4) / ( (1+x)*(x^2+1)*(x-1)^2 ). - R. J. Mathar, Dec 05 2011
From Wesley Ivan Hurt, May 25 2016: (Start)
a(n) = a(n-1) + a(n-4) - a(n-5) for n>5.
a(n) = (8*n-5-i^(2*n)-(1-2*i)*i^(-n)-(1+2*i)*i^n)/4 with i=sqrt(-1).
a(2k) = A047398(k), a(2k-1) = A047463(k). (End)
E.g.f.: 2 + sin(x) - cos(x)/2 + (2*x - 1)*sinh(x) + (2*x - 3/2)*cosh(x). - Ilya Gutkovskiy, May 25 2016
Sum_{n>=1} (-1)^(n+1)/a(n) = (3-sqrt(2))*Pi/16 - (sqrt(2)+4)*log(2)/16 + sqrt(2)*log(sqrt(2)+2)/8. - Amiram Eldar, Dec 25 2021

A047454 Numbers that are congruent to {1, 2, 3, 4} mod 8.

Original entry on oeis.org

1, 2, 3, 4, 9, 10, 11, 12, 17, 18, 19, 20, 25, 26, 27, 28, 33, 34, 35, 36, 41, 42, 43, 44, 49, 50, 51, 52, 57, 58, 59, 60, 65, 66, 67, 68, 73, 74, 75, 76, 81, 82, 83, 84, 89, 90, 91, 92, 97, 98, 99, 100, 105, 106, 107, 108, 113, 114, 115, 116, 121, 122, 123
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Magma
    I:=[1, 2, 3, 4, 9]; [n le 5 select I[n] else Self(n-1)+Self(n-4)-Self(n-5): n in [1..70]]; // Vincenzo Librandi, May 15 2012
    
  • Maple
    A047454:=n->(-5-I^(2*n)-(1-I)*(-I)^n-(1+I)*I^n+4*n)/2: seq(A047454(n), n=1..100); # Wesley Ivan Hurt, Jun 01 2016
  • Mathematica
    Select[Range[0,300], MemberQ[{1,2,3,4}, Mod[#,8]]&] (* Vincenzo Librandi, May 15 2012 *)
  • PARI
    my(x='x+O('x^100)); Vec(x*(1+x+x^2+x^3+4*x^4)/((1-x)^2*(1+x)*(1+x^2))) \\ Altug Alkan, Dec 24 2015

Formula

From Colin Barker, May 14 2012: (Start)
a(n) = (-5-(-1)^n-(1-i)*(-i)^n-(1+i)*i^n+4*n)/2 where i=sqrt(-1).
G.f.: x*(1+x+x^2+x^3+4*x^4)/((1-x)^2*(1+x)*(1+x^2)). (End)
a(n) = a(n-1) + a(n-4) - a(n-5) for n>5. - Vincenzo Librandi, May 15 2012
a(2k) = A047463(k), a(2k-1) = A047471(k). - Wesley Ivan Hurt, Jun 01 2016
Sum_{n>=1} (-1)^(n+1)/a(n) = (2*sqrt(2)-1)*Pi/16 + 3*log(2)/8. - Amiram Eldar, Dec 23 2021

A255845 a(n) = 2*n^2 + 10.

Original entry on oeis.org

10, 12, 18, 28, 42, 60, 82, 108, 138, 172, 210, 252, 298, 348, 402, 460, 522, 588, 658, 732, 810, 892, 978, 1068, 1162, 1260, 1362, 1468, 1578, 1692, 1810, 1932, 2058, 2188, 2322, 2460, 2602, 2748, 2898, 3052, 3210, 3372, 3538, 3708, 3882, 4060, 4242, 4428
Offset: 0

Views

Author

Avi Friedlich, Mar 08 2015

Keywords

Comments

This is the case k=5 of the form (n + sqrt(k))^2 + (n - sqrt(k))^2.
Equivalently, numbers m such that 2*m - 20 is a square.

Crossrefs

Cf. A016825 (first differences), A117951.
Subsequence of A047463.
Cf. similar sequences listed in A255843.

Programs

Formula

a(n) = 2*A117951(n).
From Vincenzo Librandi, Mar 08 2015: (Start)
G.f.: 2*(5 - 9*x + 6*x^2)/(1 - x)^3.
a(n) = a(-n) = 3*a(n-1) - 3*a(n-2) + a(n-3). (End)
From Amiram Eldar, Mar 28 2023: (Start)
Sum_{n>=0} 1/a(n) = (1 + sqrt(5)*Pi*coth(sqrt(5)*Pi))/20.
Sum_{n>=0} (-1)^n/a(n) = (1 + sqrt(5)*Pi*cosech(sqrt(5)*Pi))/20. (End)
E.g.f.: 2*exp(x)*(5 + x + x^2). - Elmo R. Oliveira, Jan 25 2025

Extensions

Edited by Bruno Berselli, Mar 13 2015

A255848 a(n) = 2*n^2 + 18.

Original entry on oeis.org

18, 20, 26, 36, 50, 68, 90, 116, 146, 180, 218, 260, 306, 356, 410, 468, 530, 596, 666, 740, 818, 900, 986, 1076, 1170, 1268, 1370, 1476, 1586, 1700, 1818, 1940, 2066, 2196, 2330, 2468, 2610, 2756, 2906, 3060, 3218, 3380, 3546, 3716, 3890, 4068, 4250, 4436
Offset: 0

Views

Author

Avi Friedlich, Mar 08 2015

Keywords

Comments

For n>3, the sequence gives the 6th diagonal of triangle in A055096.
Also, this is the case k=9 of the form (n + sqrt(k))^2 + (n - sqrt(k))^2. It is noted that a(n)*n = (n + sqrt(3))^3 + (n - sqrt(3))^3.
Equivalently, numbers m such that 2*m-36 is a square.

Crossrefs

Cf. A016825 (first differences), A055096, A189834.
Subsequence of A047463.
Cf. similar sequences listed in A255843.

Programs

  • Magma
    [2*n^2+18: n in [0..50]]; // Vincenzo Librandi, Mar 08 2015
    
  • Mathematica
    f[n_] := 2 n^2 + 18; Array[f, 50, 0] (* Robert G. Wilson v, Mar 08 2015 *)
    CoefficientList[Series[(18 - 34 x + 20 x^2) / (1 - x)^3, {x, 0, 50}], x] (* Vincenzo Librandi, Mar 08 2015 *)
    LinearRecurrence[{3,-3,1},{18,20,26},50] (* Harvey P. Dale, Aug 20 2021 *)
  • PARI
    vector(50, n, 2*n^2+18) \\ Derek Orr, Mar 09 2015
    
  • Sage
    [2*n^2+18 for n in (0..50)] # Bruno Berselli, Mar 11 2015

Formula

a(n) = 2*A189834(n).
From Vincenzo Librandi, Mar 08 2015: (Start)
G.f.: 2*(9 - 17*x + 10*x^2)/(1 - x)^3.
a(n) = a(-n) = 3*a(n-1) - 3*a(n-2) + a(n-3). (End)
From Amiram Eldar, Mar 28 2023: (Start)
Sum_{n>=0} 1/a(n) = (1 + 3*Pi*coth(3*Pi))/36.
Sum_{n>=0} (-1)^n/a(n) = (1 + 3*Pi*cosech(3*Pi))/36. (End)
E.g.f.: 2*exp(x)*(9 + x + x^2). - Elmo R. Oliveira, Jan 25 2025

Extensions

Edited by Bruno Berselli, Mar 11 2015

A317613 Permutation of the nonnegative integers: lodumo_4 of A047247.

Original entry on oeis.org

2, 3, 0, 1, 4, 5, 6, 7, 10, 11, 8, 9, 12, 13, 14, 15, 18, 19, 16, 17, 20, 21, 22, 23, 26, 27, 24, 25, 28, 29, 30, 31, 34, 35, 32, 33, 36, 37, 38, 39, 42, 43, 40, 41, 44, 45, 46, 47, 50, 51, 48, 49, 52, 53, 54, 55, 58, 59, 56, 57, 60, 61, 62, 63, 66, 67, 64
Offset: 0

Views

Author

Keywords

Comments

Write n in base 8, then apply the following substitution to the rightmost digit: '0'->'2, '1'->'3', and vice versa. Convert back to decimal.
A self-inverse permutation: a(a(n)) = n.
Array whose columns are, in this order, A047463, A047621, A047451 and A047522, read by rows.

Examples

			a(25) = a('3'1') = '3'3' = 27.
a(26) = a('3'2') = '3'0' = 24.
a(27) = a('3'3') = '3'1' = 25.
a(28) = a('3'4') = '3'4' = 28.
a(29) = a('3'5') = '3'5' = 29.
The sequence as array read by rows:
  A047463, A047621, A047451, A047522;
        2,       3,       0,       1;
        4,       5,       6,       7;
       10,      11,       8,       9;
       12,      13,      14,      15;
       18,      19,      16,      17;
       20,      21,      22,      23;
       26,      27,      24,      25;
       28,      29,      30,      31;
  ...
		

Crossrefs

Programs

  • Magma
    m:=100; R:=PowerSeriesRing(Integers(), m); Coefficients(R!((x^7+x^5+3*x^3-2*x^2-x+2)/((1-x)^2*(x^6+x^4+ x^2+1)))); // G. C. Greubel, Sep 25 2018
  • Mathematica
    Table[(4*(Floor[1/4 Mod[2*n + 4, 8]] - Floor[1/4 Mod[n + 2, 8]]) + 2*n)/2, {n, 0, 100}]
    f[n_] := Block[{id = IntegerDigits[n, 8]}, FromDigits[ Join[Most@ id /. {{} -> {0}}, {id[[-1]] /. {0 -> 2, 1 -> 3, 2 -> 0, 3 -> 1}}], 8]]; Array[f, 67, 0] (* or *)
    CoefficientList[ Series[(x^7 + x^5 + 3x^3 - 2x^2 - x + 2)/((x - 1)^2 (x^6 + x^4 + x^2 + 1)), {x, 0, 70}], x] (* or *)
    LinearRecurrence[{2, -2, 2, -2, 2, -2, 2, -1}, {2, 3, 0, 1, 4, 5, 6, 7}, 70] (* Robert G. Wilson v, Aug 01 2018 *)
  • Maxima
    makelist((4*(floor(mod(2*n + 4, 8)/4) - floor(mod(n + 2, 8)/4)) + 2*n)/2, n, 0, 100);
    
  • PARI
    my(x='x+O('x^100)); Vec((x^7+x^5+3*x^3-2*x^2-x+2)/((1-x)^2*(x^6+x^4+ x^2+1))) \\ G. C. Greubel, Sep 25 2018
    

Formula

a(n) = 2*a(n-1) - 2*a(n-2) + 2*a(n-3) - 2*a(n-4) + 2*a(n-5) - 2*a(n-6) + 2*a(n-7) - a(n-8), n > 7.
a(n) = (4*(floor(((2*n + 4) mod 8)/4) - floor(((n + 2) mod 8)/4)) + 2*n)/2.
a(n) = lod_4(A047247(n+1)).
a(4*n) = A047463(n+1).
a(4*n+1) = A047621(n+1).
a(4*n+2) = A047451(n+1).
a(4*n+3) = A047522(n+1).
a(A042948(n)) = A047596(n+1).
a(A042964(n+1)) = A047551(n+1).
G.f.: (x^7 + x^5 + 3*x^3 - 2*x^2 - x + 2)/((x-1)^2 * (x^2+1) * (x^4+1)).
E.g.f.: x*exp(x) + cos(x) + sin(x) + cos(x/sqrt(2))*cosh(x/sqrt(2)) + (sqrt(2)*cos(x/sqrt(2)) - sin(x/sqrt(2)))*sinh(x/sqrt(2)).
a(n+8) = a(n) + 8 . - Philippe Deléham, Mar 09 2023
Sum_{n>=3} (-1)^(n+1)/a(n) = 1/6 + log(2). - Amiram Eldar, Mar 12 2023
Showing 1-9 of 9 results.