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.

A361936 Indices of the squares in the sequence of powerful numbers (A001694).

Original entry on oeis.org

1, 2, 4, 5, 6, 9, 10, 11, 13, 14, 16, 19, 20, 21, 24, 26, 28, 29, 31, 33, 35, 36, 39, 40, 41, 44, 45, 46, 48, 50, 51, 55, 56, 59, 60, 61, 65, 67, 68, 70, 71, 73, 75, 76, 79, 81, 84, 85, 87, 88, 90, 92, 94, 96, 97, 100, 102, 104, 107, 109, 110, 111, 114, 116, 117, 119, 120
Offset: 1

Views

Author

Amiram Eldar, Mar 31 2023

Keywords

Comments

Equivalently, the number of powerful numbers that do not exceed n^2.
The asymptotic density of this sequence is zeta(3)/zeta(3/2) = 1/A090699 = 0.460139... .
If k is a term of A336175 then a(k) and a(k+1) are consecutive integers, i.e., a(k+1) = a(k) + 1.

Crossrefs

Programs

  • Mathematica
    Position[Select[Range[5000], # == 1 || Min[FactorInteger[#][[;; , 2]]] > 1 &], _?(IntegerQ[Sqrt[#]] &)] // Flatten
  • PARI
    lista(kmax) = {my(c = 0); for(k = 1, kmax, if(ispowerful(k), c++); if(issquare(k), print1(c, ", "))); }
    
  • Python
    from math import isqrt
    from sympy import integer_nthroot, factorint
    def A361936(n):
        m = n**2
        return int(sum(isqrt(m//k**3) for k in range(1, integer_nthroot(m, 3)[0]+1) if all(d<=1 for d in factorint(k).values()))) # Chai Wah Wu, Sep 10 2024

Formula

a(n) = A217038(n^2).
a(n+1) - a(n) = A119241(n) + 1.
a(n) = (zeta(3/2)/zeta(3)) * n + O(n^(2/3)).