OFFSET
0,3
COMMENTS
The value of the rightmost digit in the base-16 representation of n. Also, the equivalent value of the two rightmost digits in the base-4 representation of n. Also, the equivalent value of the four rightmost digits in the base-2 representation of n.
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1).
FORMULA
MATHEMATICA
Mod[Range[0, 127], 16] (* Paolo Xausa, May 22 2026 *)
PROG
(PARI) a(n)=n%16 \\ Charles R Greathouse IV, Jul 13 2016
(Python)
def A130909(n): return n&15 # Chai Wah Wu, Jan 18 2023
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Hieronymus Fischer, Jun 11 2007
STATUS
approved
