FORMULA
a(n) = floor((n+3)/3)+2*floor((n+2)/3)-3*floor(n/3). - Aaron J Grech, Aug 28 2024
KEYWORD
easy,cofr,cons,nonn,changed
STATUS
editing
approved
a(n) = floor((n+3)/3)+2*floor((n+2)/3)-3*floor(n/3). - Aaron J Grech, Aug 28 2024
easy,cofr,cons,nonn,changed
editing
approved
proposed
editing
editing
proposed
a(n) = floor((n+3)/3)+2*floor((n+2)/3)-3*floor(n/3). - Aaron J Grech, Aug 28 2024
approved
editing
proposed
approved
editing
proposed
a(n) = (13*(n mod 3)+7*(n+1 mod 3)+(n+2 mod 3))/9 (cf. forms of modular arithmetic of Paolo P. Lava, i.e., see A146094). [Bruno Berselli, Sep 27 2010]
approved
editing
proposed
approved
editing
proposed
a(n) = 2*(n^2 mod 3)+1. [Paolo P. Lava, Dec 14 2009]
approved
editing