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.

A350090 a(n) is the number of indices i in the range 0 <= i <= n-1 such that A003215(n) - A003215(i) is an oblong number (A002378), where A003215 are the hex numbers.

Original entry on oeis.org

0, 1, 1, 1, 1, 3, 1, 2, 3, 1, 1, 1, 3, 1, 1, 3, 3, 1, 3, 3, 3, 3, 5, 1, 1, 1, 5, 1, 1, 3, 1, 3, 1, 7, 1, 3, 3, 1, 1, 3, 7, 1, 1, 3, 3, 1, 3, 3, 1, 1, 3, 3, 1, 3, 7, 1, 3, 7, 1, 7, 3, 3, 1, 1, 3, 3, 1, 1, 3, 3, 7, 5, 3, 3, 1, 5, 3, 3, 7, 3, 1, 1, 3, 3, 3, 7, 1, 3, 1, 3, 1
Offset: 0

Views

Author

Klaus Purath and Michel Marcus, Dec 14 2021

Keywords

Comments

There are very few even terms in the data (3 up to 10000). They are obtained for indices coming from A001921. For odd terms see A350120.
a(n) = 1 for n in A111251.

Examples

			For n=5, the 5 numbers hex(5)-hex(i), for i=0 to 4, are (90, 84, 72, 54, 30) out of which 90, 72 and 30 are oblong, so a(5) = 3.
		

Crossrefs

Programs

  • Mathematica
    obQ[n_] := IntegerQ @ Sqrt[4*n + 1]; hex[n_] := 3*n*(n + 1) + 1; a[n_] := Module[{h = hex[n]}, Count[Range[0, n - 1], ?(obQ[h - hex[#]] &)]]; Array[a, 100, 0] (* _Amiram Eldar, Dec 14 2021 *)
  • PARI
    hex(n) = 3*n*(n+1)+1; \\ A003215
    isob(n) = my(m=sqrtint(n)); m*(m+1)==n; \\ A002378
    a(n) = my(h=hex(n)); sum(k=0, n-1, isob(h - hex(k)));
    
  • PARI
    a(n) = numdiv(3*n*n + 3*n + 1) - 1; \\ Jinyuan Wang, Dec 19 2021

Formula

a(n) = A000005(A003215(n)) - 1. - Jinyuan Wang, Dec 19 2021

Extensions

Edited by N. J. A. Sloane, Dec 25 2021

A350192 Distinct values of A350090 in the order in which they appear.

Original entry on oeis.org

0, 1, 3, 2, 5, 7, 11, 15, 17, 23, 31, 19, 35, 9, 47, 39, 63, 29, 26, 95, 53, 71, 143, 13, 79, 127, 27, 59, 107, 191, 159, 287, 55, 255, 167, 99, 119, 111, 319, 83, 41, 215, 383, 179, 49, 239, 431, 89, 323, 511, 223, 359, 575, 479, 485, 639, 87, 161, 767, 80, 335
Offset: 1

Views

Author

Michel Marcus, Dec 19 2021

Keywords

Crossrefs

Extensions

a(1) = 0 inserted by and more terms from Jinyuan Wang, Dec 19 2021

A350193 Indices that give distinct values of A350090 in the order in which they appear.

Original entry on oeis.org

0, 1, 5, 7, 22, 33, 124, 187, 757, 852, 876, 1149, 1541, 5951, 6767, 8454, 10067, 15555, 20272, 29751, 51721, 59662, 89055, 90088, 92489, 161673, 207737, 217341, 225622, 361054, 452639, 530990, 560684, 669999, 733454, 1000067, 1866828, 2090121, 2464677, 3148962
Offset: 1

Views

Author

Michel Marcus, Dec 19 2021

Keywords

Crossrefs

Programs

Extensions

a(1) = 0 inserted by and more terms from Jinyuan Wang, Dec 19 2021
Showing 1-3 of 3 results.