LINKS
Ruud H.G. van Tol, <a href="/A254070/b254070_1.txt">Table of n, a(n) for n = 1..10000</a>
Ruud H.G. van Tol, <a href="/A254070/b254070_1.txt">Table of n, a(n) for n = 1..10000</a>
reviewed
approved
proposed
reviewed
editing
proposed
Ruud H.G. van Tol, <a href="/A254070/b254070_1.txt">Table of n, a(n) for n = 1..10000</a>
approved
editing
proposed
approved
editing
proposed
(PARI) a(n) = my(x=3*n-2, v); x>>=valuation(x, 2)); x>>=v; v=valuation(x+1, 2)-1; ((x>>v)+1)*2*3^(v-1)-1; \\ Ruud H.G. van Tol, Jul 16 2023
proposed
editing
editing
proposed
v[y_] := IntegerExponent[y, 2]; f[x_] := (3*x + 1)/2^v[3*x + 1]; s[n_] := -1 + (3/2)^(-1 + v[1 + f[4*n - 3]])*(1 + f[4*n - 3]); Table[s[n], {n, 70}] (* - __L. Edson Jeffery_, Mar 29 2021 *)
proposed
editing