OFFSET
1,2
COMMENTS
Equivalently, numbers k such that in the perspective view of the stepped pyramid described in A245092, the steps of the n-th level do not share any vertical face with the steps of the level n + 1, starting from the top of the pyramid.
a(2) = 2 is the only even number in the sequence.
FORMULA
a(n) = A279029(n+1) - 1, for n >= 1. - Hartmut F. W. Hoft, Jan 25 2025
MATHEMATICA
(* Function path[] is defined in A237270 *)
a323648Q[n_] := Length[Select[Transpose[{Take[path[n+1], {2, -2}], path[n]}], #[[1]]==#[[2]]&]]<=1
a323648[n_] := Select[Range[n], a323648Q]
a323648[255]
(* Functions a262259Q[ ] and a174973Q[ ] are defined in A279029 *)
a323648[n_] := Select[Range[n], a262259Q[#+1]||a174973Q[#+1]&]
a323648[255] (* Hartmut F. W. Hoft, Jan 25 2025 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, Apr 02 2019
EXTENSIONS
a(17)-a(63) by Hartmut F. W. Hoft, Jan 25 2025
STATUS
approved
