OFFSET
1,4
COMMENTS
This number sequence is designed for a quick test of e.g. arithmetic in binary systems.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..997
Index entries for linear recurrences with constant coefficients, signature (-1,-1,-1,-1,2,2,2,2,2).
MATHEMATICA
Flatten[Table[2^n+{-2, -1, 0, 1, 2}, {n, 0, 20}]]//Union (* Harvey P. Dale, Dec 25 2025 *)
PROG
(PARI) a(n)=if(n>12, 2^((n+7)\5)+(n+2)%5-2, n-2) \\ Charles R Greathouse IV, Jun 03 2026
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Henrik Lundquist (sploinker(AT)sploink.dk), Jun 06 2005
STATUS
approved
