OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..9825
FORMULA
a(n) = n + O(log^3 n). - Charles R Greathouse IV, Dec 22 2016
MATHEMATICA
fQ[n_]:=!PowerMod[30, n, n] == 0; Select[Range[100], fQ]
Select[Range[100], Max[FactorInteger[#][[;; , 1]]]>5&] (* Harvey P. Dale, Feb 28 2023 *)
PROG
(PARI) isok(n) = vecmax(factor(n)[, 1]) > 5; \\ Michel Marcus, Dec 21 2016
(PARI) is(n)=if(n<7, return(0)); n>>=valuation(n, 2); n/=3^valuation(n, 2) * 5^valuation(n, 5); n>1 \\ Charles R Greathouse IV, Dec 22 2016
(Magma) [n: n in [1..100] | not PrimeDivisors(n) subset [2, 3, 5]]; // Vincenzo Librandi, Jan 29 2017
(Python)
from sympy import integer_log
def A279622(n):
def f(x):
c = n
for i in range(integer_log(x, 5)[0]+1):
for j in range(integer_log(y:=x//5**i, 3)[0]+1):
c += (y//3**j).bit_length()
return c
m, k = n, f(n)
while m != k: m, k = k, f(k)
return m # Chai Wah Wu, Sep 16 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Dec 21 2016
STATUS
approved