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.

Previous Showing 21-21 of 21 results.

A272370 Number of geometrically inscriptible regular polygons with fewer than 2^n + 1 sides.

Original entry on oeis.org

0, 2, 5, 9, 14, 20, 27, 35, 44, 54, 65, 77, 90, 104, 119, 135, 152, 170, 189, 209, 230, 252, 275, 299, 324, 350, 377, 405, 434, 464, 495, 527, 559, 591, 623, 655, 687, 719, 751, 783, 815, 847, 879, 911, 943, 975, 1007, 1039, 1071, 1103, 1135, 1167, 1199, 1231, 1263, 1295
Offset: 1

Views

Author

Michel Marcus, Apr 28 2016

Keywords

Comments

a(n) is the number of terms of A003401, except its first two degenerate case terms, that are less than 2^n + 1.

Examples

			For n=2, there are 2 such polygons, those with 3 and 4 sides, below 2^2+1 = 5.
		

Crossrefs

Programs

  • PARI
    a(n) = if(n < 32, (n-1)*(n+2)/2, if(n < 2^33, 32*n-497));
    
  • PARI
    a(n) = {i = 2^n; j = 2*n - 2; k = 1; while(i > A045544(k) && k < 31, k++; j+=floor(log(i/A045544(k))/log(2))+1); j; } \\ Jinyuan Wang, Jul 29 2019

Formula

a(n) = (n-1)*(n+2)/2 if n < 32, otherwise 32*n-497 if n < 2^33.
Previous Showing 21-21 of 21 results.