[go: up one dir, main page]

login
A371690
Main diagonal of A347283: parity of the n-th term in the trajectory of n under the A006370 map.
5
1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1
OFFSET
1
FORMULA
a(n) = A347272(n-1) mod 2 = A347283(n,n-1).
MATHEMATICA
Table[Mod[Nest[If[OddQ[#], 3*#+1, #/2] &, n, n-1], 2], {n, 100}]
CROSSREFS
Parity of A347272.
Sequence in context: A014042 A014075 A204269 * A179830 A266216 A025446
KEYWORD
nonn,easy
AUTHOR
Paolo Xausa, Apr 04 2024
STATUS
approved