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.

A162362 a(n) = A066186(n) - A004125(n).

Original entry on oeis.org

1, 4, 8, 19, 31, 63, 97, 168, 258, 407, 594, 907, 1285, 1859, 2604, 3660, 4998, 6883, 9246, 12479, 16562, 21967, 28767, 37715, 48847, 63224, 81145, 103980, 132234, 167982, 211935, 267001, 334535, 418343, 520687, 646974, 800336, 988322
Offset: 1

Views

Author

Juri-Stepan Gerasimov, Jul 02 2009

Keywords

Examples

			1(=1-0), 4(=4-0), 8(=9-1), 19(=20-1), 31(=35-4), 63(=66-3), 97(=105-8), etc.
		

Crossrefs

Programs

  • Python
    from math import isqrt
    from sympy import npartitions
    def A162362(n): return n*(npartitions(n)-n)-((s:=isqrt(n))**2*(s+1)-sum((q:=n//k)*((k<<1)+q+1) for k in range(1,s+1))>>1) # Chai Wah Wu, Oct 22 2023

Extensions

Entries checked by R. J. Mathar, May 21 2010