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.

A101858 Array read by antidiagonals: T(n,k) = Porta-Stolarsky star product T(n,k) = n * k = nk + floor(phi n) floor(phi k) where phi = (1 + sqrt(5))/2.

Original entry on oeis.org

2, 5, 5, 7, 13, 7, 10, 18, 18, 10, 13, 26, 25, 26, 13, 15, 34, 36, 36, 34, 15, 18, 39, 47, 52, 47, 39, 18, 20, 47, 54, 68, 68, 54, 47, 20, 23, 52, 65, 78, 89, 78, 65, 52, 23, 26, 60, 72, 94, 102, 102, 94, 72, 60, 26, 28, 68, 83, 104, 123, 117, 123, 104, 83, 68, 28, 31, 73, 94, 120
Offset: 1

Views

Author

N. J. A. Sloane, Jan 28 2005

Keywords

Examples

			..2...5...7..10..13..15..18..20..23..26.
..5..13..18..26..34..39..47..52..60..68.
..7..18..25..36..47..54..65..72..83..94.
.10..26..36..52..68..78..94.104.120.136.
.13..34..47..68..89.102.123.136.157.178.
.15..39..54..78.102.117.141.156.180.204.
.18..47..65..94.123.141.170.188.217.246.
.20..52..72.104.136.156.188.208.240.272.
.23..60..83.120.157.180.217.240.277.314.
.26..68..94.136.178.204.246.272.314.356.
		

Crossrefs

See A101330, A101385, A101633, A101866 for related definitions of product.
Main diagonal is A101863.
First 3 rows are A001950, A101864, A101865.
Cf. A001622.

Programs

  • Maple
    A101858 := proc(n,k)
            phi := (1+sqrt(5))/2 ;
            n*k+floor(n*phi)*floor(phi*k) ;
    end proc: # R. J. Mathar, Dec 06 2011
  • Mathematica
    t[n_, k_] := n*k + Floor[n*GoldenRatio] * Floor[GoldenRatio*k]; Table[t[n-k, k], {n, 2, 13}, {k, 1, n-1}] // Flatten (* Jean-François Alcover, Jan 14 2014 *)

A371381 Main diagonal of A219875.

Original entry on oeis.org

2, 8, 13, 25, 41, 52, 74, 89, 117, 149, 170, 208, 250, 277, 325, 356, 410, 468, 505, 569, 610, 680, 754, 801, 881, 965, 1018, 1108, 1165, 1261, 1361, 1424, 1530, 1640, 1709, 1825, 1898, 2020, 2146, 2225, 2357, 2440, 2578, 2720, 2809, 2957, 3109, 3204, 3362, 3461
Offset: 1

Views

Author

Paolo Xausa, Mar 20 2024

Keywords

Crossrefs

Programs

  • Mathematica
    Array[#^2 + Ceiling[# / GoldenRatio]^2 &, 100]
  • Python
    from math import isqrt
    def A371381(n): return (n<<1)*(n-1)+1+(q:=n+isqrt(5*n**2)>>1)*(q-(n-1<<1)) # Chai Wah Wu, Mar 21 2024

Formula

a(n) = n^2 + ceiling(n/(1 + sqrt(5))/2)^2 = n^2 + A019446(n)^2.

A371382 a(n) = n^2 + q*(q + 1), where q = floor(n*(1 + sqrt(5))/2) = A000201(n).

Original entry on oeis.org

3, 16, 29, 58, 97, 126, 181, 220, 291, 372, 427, 524, 631, 702, 825, 906, 1045, 1194, 1291, 1456, 1563, 1744, 1935, 2058, 2265, 2482, 2621, 2854, 3003, 3252, 3511, 3676, 3951, 4236, 4417, 4718, 4909, 5226, 5553, 5760, 6103, 6320, 6679, 7048, 7281, 7666, 8061, 8310
Offset: 1

Views

Author

Paolo Xausa, Mar 20 2024

Keywords

Crossrefs

Main diagonal of A295573.

Programs

  • Mathematica
    Array[#^2 + Block[{q = Floor[# * GoldenRatio]}, q * (q + 1)] &, 100]
  • Python
    from math import isqrt
    def A371382(n): return n**2+(q:=n+isqrt(5*n**2)>>1)*(q+1) # Chai Wah Wu, Mar 21 2024
Showing 1-3 of 3 results.