A085242 a(n) = A085239(n+1) - 2.
0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0
Offset: 1
Keywords
Crossrefs
Cf. A085239.
Programs
-
PARI
upto(L) = my(v2=2, v3=1, r=List()); while(v3
Ruud H.G. van Tol, May 10 2024 -
Python
from sympy import integer_log def A085242(n): return int(6**integer_log(m:=3**n,6)[0]<<1>=m) # Chai Wah Wu, Feb 05 2025
Extensions
Name corrected by Ruud H.G. van Tol, May 10 2024
Comments