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

A026252 a(n) = (1/2)*(s(n) + 1), where s(n) is the n-th odd number in A026250. Also a(n) = position of n in A026252.

Original entry on oeis.org

2, 1, 7, 9, 12, 14, 3, 19, 4, 24, 26, 5, 31, 6, 36, 38, 41, 43, 8, 48, 50, 53, 55, 10, 60, 11, 65, 67, 70, 72, 13, 77, 79, 82, 84, 15, 89, 16, 94, 96, 17, 101, 18, 106, 108, 111, 113, 20, 118, 21, 123, 125, 22, 130, 23, 135, 137, 140, 142
Offset: 1

Views

Author

Keywords

A026253 a(n) = (1/2)*s(n), where s(n) is the n-th even number in A026250. Also a(n) = position of n in A026253.

Original entry on oeis.org

3, 5, 1, 10, 2, 15, 17, 20, 22, 4, 27, 29, 32, 34, 6, 39, 7, 44, 46, 8, 51, 9, 56, 58, 61, 63, 11, 68, 12, 73, 75, 13, 80, 14, 85, 87, 90, 92, 16, 97, 99, 102, 104, 18, 109, 19, 114, 116, 119, 121, 21, 126, 128, 131, 133, 23, 138, 24, 143, 145
Offset: 1

Views

Author

Keywords

A193620 G.f. satisfies: A(x) = 1 + Sum_{n>=1} x^n * A(x)^A026250(n).

Original entry on oeis.org

1, 1, 4, 22, 132, 875, 6127, 44580, 333748, 2553956, 19887080, 157066758, 1255181598, 10130663492, 82461801961, 676165571433, 5580011570160, 46309238031602, 386256008451734, 3236134144224075, 27222318068596831, 229828039356161276, 1946773238298955438
Offset: 0

Views

Author

Paul D. Hanna, Sep 01 2011

Keywords

Comments

Sequence A026250 is a self-inverse permutation of the natural numbers where
A026250([k*sqrt(2)]) = [k*(2+sqrt(2))] and
A026250([k*(2+sqrt(2))]) = [k*sqrt(2)] for k>=1, and [x] = floor(x).

Examples

			G.f.: A(x) = 1 + x + 4*x^2 + 22*x^3 + 132*x^4 + 875*x^5 + 6127*x^6 +...
where A(x) = 1 + x*A(x)^3 + x^2*A(x)^6 + x^3*A(x) + x^4*A(x)^10 + x^5*A(x)^13 + x^6*A(x)^2 + x^7*A(x)^17 + x^8*A(x)^20 + x^9*A(x)^23 + x^10*A(x)^4 +...
which also equals: A(x) = 1 + A(x)*x^3 + A(x)^2*x^6 + A(x)^3*x + A(x)^4*x^10 + A(x)^5*x^13 + A(x)^6*x^2 + A(x)^7*x^17 + A(x)^8*x^20 + A(x)^9*x^23 + A(x)^10*x^4 +...
In the above series, the exponents begin:
A026250 = [3,6,1,10,13,2,17,20,23,4,27,30,5,34,37,40,7,44,47,8,51,...].
		

Crossrefs

Programs

  • PARI
    {a(n)=local(A=1+x,s=sqrt(2),t=2+sqrt(2));for(i=1,n,A=1+sum(m=1,n, x^floor(m*s)*(A+x*O(x^n))^floor(m*t) + x^floor(m*t)*(A+x*O(x^n))^floor(m*s) )); polcoeff(A, n)}

Formula

G.f. satisfies: A(x) = 1 + Sum_{n>=1} A(x)^n * x^A026250(n).

A026251 a(n) = |s(n) - n|, where s = A026250. Also a(n) = 2*t(n), where t = A026249.

Original entry on oeis.org

2, 4, 2, 6, 8, 4, 10, 12, 14, 6, 16, 18, 8, 20, 22, 24, 10, 26, 28, 12, 30, 32, 14, 34, 36, 38, 16, 40, 42, 18, 44, 46, 48, 20, 50, 52, 22, 54, 56, 24, 58, 60, 62, 26, 64, 66, 28, 68, 70, 72, 30, 74, 76, 32, 78, 80, 82, 34, 84, 86, 36, 88, 90
Offset: 1

Views

Author

Keywords

A001951 A Beatty sequence: a(n) = floor(n*sqrt(2)).

Original entry on oeis.org

0, 1, 2, 4, 5, 7, 8, 9, 11, 12, 14, 15, 16, 18, 19, 21, 22, 24, 25, 26, 28, 29, 31, 32, 33, 35, 36, 38, 39, 41, 42, 43, 45, 46, 48, 49, 50, 52, 53, 55, 56, 57, 59, 60, 62, 63, 65, 66, 67, 69, 70, 72, 73, 74, 76, 77, 79, 80, 82, 83, 84, 86, 87, 89, 90, 91, 93, 94, 96, 97, 98, 100
Offset: 0

Views

Author

Keywords

Comments

Earliest monotonic sequence greater than 0 satisfying the condition: "a(n) + 2n is not in the sequence". - Benoit Cloitre, Mar 25 2004
Also the integer part of the hypotenuse of isosceles right triangles. The real part of these numbers is irrational. For proof see Jones and Jones.
First differences are 1, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, ... (A006337 with a 1 in front). - Philippe Deléham, May 29 2006
It appears that the distance between the a(n)-th triangular number and the nearest square is not greater than floor(a(n)/2). - Ralf Stephan, Sep 14 2013
These are the nonnegative integers m satisfying sin(m*Pi/r)*sin((m+1)*Pi/r) <= 0, where r = sqrt(2). In general, the Beatty sequence of an irrational number r > 1 consists of the numbers m satisfying sin(m*x)*sin((m+1)*x) <= 0, where x = Pi/r. Thus the numbers m satisfying sin(m*x)*sin((m+1)*x) > 0 form the Beatty sequence of r/(1-r). - Clark Kimberling, Aug 21 2014
For n > 0: A080764(a(n)) = 1. - Reinhard Zumkeller, Jul 03 2015
From Clark Kimberling, Oct 17 2016: (Start)
We can generate A001951 and A001952 without using sqrt(2).
First write the even positive integers in a row:
2 4 6 8 10 12 14 . . .
Then put 1 under 2 and add:
2 4 6 8 10 12 14 . . .
1
3
Next, under 4, put the least positive integer that is not yet in rows 2 and 3;
it is 2; and add:
2 4 6 8 10 12 14 . . .
1 2
3 6
Next, under the 6 in row 1, put the least positive integer not yet in rows 2 and 3;
it is 4, and add:
2 4 6 8 10 12 14 . . .
1 2 4
3 6 10
Continue in this manner. (End)
This sequence contains an infinite number of powers of 2 (proof in Crux Mathematicorum link). See A103341. - Bernard Schott, Mar 08 2019
The terms of this sequence generate the multiplicative group of positive rational numbers (observation by Stephen M. Gagola, Jr.; see References). - Allen Stenger, Aug 05 2023
a(n) is also the number of distinct straight cylinders with integer radius and height having the same surface as a sphere with radius n. - Felix Huber, Sep 20 2024
Let P(x,y) be the condition x^2 + y^2 <= n^2, then 4*a(n) is the number of integer points (x,y) such that P(x,y) is true and at least one of P(x+1,y), P(x-1,y), P(x,y+1), P(x,y-1) is false. See LINKS for examples. - Bob de Boisvilliers, May 14 2025

References

  • Eric Duchêne, Aviezri S. Fraenkel, Vladimir Gurvich, Nhan Bao Ho, Clark Kimberling, Urban Larsson, Wythoff Visions, Games of No Chance, Vol. 5; MSRI Publications, Vol. 70 (2017), pages 101-153.
  • Stephen M. Gagola Jr., Solution of Problem 12282, Am. Math. Monthly, 130 (2023), pp. 682-683.
  • R. L. Graham, D. E. Knuth and O. Patashnik, Concrete Mathematics. Addison-Wesley, Reading, MA, 1990, p. 77.
  • Gareth A. Jones and J. Mary Jones, Elementary Number Theory, Springer, 1998; pp. 221-222.
  • N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
  • Roland Sprague, Recreations in Mathematics, Blackie and Son, (1963).
  • David Wells, The Penguin Dictionary of Curious and Interesting Numbers, Penguin Books, Revised edition (1997), Entry sqrt(2), p. 18.

Crossrefs

Complement of A001952. Equals A001952(n) - 2*n for n>0.
Equals A003151(n) - n; a bisection of A094077.
Bisections: A022842, A342281.
The following sequences are all essentially the same, in the sense that they are simple transformations of each other, with A003151 as the parent: A003151, A001951, A001952, A003152, A006337, A080763, A082844 (conjectured), A097509, A159684, A188037, A245219 (conjectured), A276862. - N. J. A. Sloane, Mar 09 2021
Partial sums: A194102.

Programs

  • Haskell
    a001951 = floor . (* sqrt 2) . fromIntegral
    -- Reinhard Zumkeller, Sep 14 2014
    
  • Magma
    [Floor(n*Sqrt(2)): n in [0..60]]; // Vincenzo Librandi, Oct 22 2011
    
  • Magma
    [Isqrt(2*n^2):n in[0..60]]; // Jason Kimberley, Oct 28 2016
    
  • Maple
    a:=n->floor(n*sqrt(2)): seq(a(n),n=0..80); # Muniru A Asiru, Mar 09 2019
  • Mathematica
    Floor[Range[0, 72] Sqrt[2]] (* Robert G. Wilson v, Oct 17 2012 *)
  • Maxima
    makelist(floor(n*sqrt(2)), n, 0, 100); /* Martin Ettl, Oct 17 2012 */
    
  • PARI
    f(n) = for(j=1,n,print1(floor(sqrt(2*j^2))","))
    
  • PARI
    a(n)=sqrtint(2*n^2) \\ Charles R Greathouse IV, Oct 19 2016
    
  • Python
    from sympy import integer_nthroot
    def A001951(n): return integer_nthroot(2*n**2,2)[0] # Chai Wah Wu, Mar 16 2021

Formula

a(n) = A000196(A001105(n)). - Jason Kimberley, Oct 26 2016
a(n) = floor(csc(1/(sqrt(2)*n))) for n > 0, since sqrt(2)*n < csc(1/(sqrt(2)*n)) < sqrt(2)*n + 1/(3*sqrt(2)*n) < floor(sqrt(2)*n) + 1 for n > 0. - Jianing Song, Sep 07 2021
a(n) = A194102(n) - A194102(n-1) for n > 0. - M. F. Hasler, Apr 23 2022

Extensions

More terms from David W. Wilson, Sep 20 2000

A001952 A Beatty sequence: a(n) = floor(n*(2 + sqrt(2))).

Original entry on oeis.org

3, 6, 10, 13, 17, 20, 23, 27, 30, 34, 37, 40, 44, 47, 51, 54, 58, 61, 64, 68, 71, 75, 78, 81, 85, 88, 92, 95, 99, 102, 105, 109, 112, 116, 119, 122, 126, 129, 133, 136, 139, 143, 146, 150, 153, 157, 160, 163, 167, 170, 174, 177, 180, 184, 187, 191, 194, 198
Offset: 1

Views

Author

Keywords

Comments

It appears that the distance between the a(n)-th triangular number and the nearest square is greater than floor(a(n)/2). - Ralf Stephan, Sep 14 2013
A080764(a(n)) = 0. - Reinhard Zumkeller, Jul 03 2015

References

  • Eric Duchêne, Aviezri S. Fraenkel, Vladimir Gurvich, Nhan Bao Ho, Clark Kimberling, Urban Larsson, Wythoff Visions, Games of No Chance, Vol. 5; MSRI Publications, Vol. 70 (2017), pages 101-153.
  • R. L. Graham, D. E. Knuth and O. Patashnik, Concrete Mathematics. Addison-Wesley, Reading, MA, 1990, p. 77.
  • N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Complement of A001951; equals A001951(n)+2*n.
A bisection of A094077.
Bisection: A187393, A342280.
The following sequences are all essentially the same, in the sense that they are simple transformations of each other, with A003151 as the parent: A003151, A001951, A001952, A003152, A006337, A080763, A082844 (conjectured), A097509, A159684, A188037, A245219 (conjectured), A276862. - N. J. A. Sloane, Mar 09 2021

Programs

A026255 Beginning with the natural numbers, swap [ k*sqrt(3) ] and [ (k/2)*(3 + sqrt(3)) ], for all k >= 1.

Original entry on oeis.org

2, 1, 4, 3, 7, 9, 5, 11, 6, 14, 8, 16, 18, 10, 21, 12, 23, 13, 26, 28, 15, 30, 17, 33, 35, 19, 37, 20, 40, 22, 42, 44, 24, 47, 25, 49, 27, 52, 54, 29, 56, 31, 59, 32, 61, 63, 34, 66, 36, 68, 70, 38, 73, 39, 75, 41, 78, 80, 43, 82, 45, 85, 46
Offset: 1

Views

Author

Keywords

Comments

Self-inverse integer permutation induced by Beatty sequences for sqrt(3) and (3+sqrt(3))/2. - Reinhard Zumkeller, Jun 11 2005

Crossrefs

Formula

a(A022838(n)) = A054406(n) and a(A054406(n)) = A022838(n). - Reinhard Zumkeller, Jun 11 2005

A026262 Beginning with the natural numbers, swap [ k*sqrt(5) ] and [ (k/4)*(5 + sqrt(5)) ], for all k >= 1.

Original entry on oeis.org

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

Views

Author

Keywords

Comments

Self-inverse integer permutation induced by Beatty sequences for sqrt(5) and (5+sqrt(5))/4. - Reinhard Zumkeller, Jun 11 2005

Crossrefs

Formula

a(A022839(n))=A108598(n) and a(A108598(n))=A022839(n). - Reinhard Zumkeller, Jun 11 2005
Showing 1-8 of 8 results.