|
| |
|
|
A047217
|
|
Numbers that are congruent to {0, 1, 2} mod 5.
|
|
20
| |
|
|
0, 1, 2, 5, 6, 7, 10, 11, 12, 15, 16, 17, 20, 21, 22, 25, 26, 27, 30, 31, 32, 35, 36, 37, 40, 41, 42, 45, 46, 47, 50, 51, 52, 55, 56, 57, 60, 61, 62, 65, 66, 67, 70, 71, 72, 75, 76, 77, 80, 81, 82, 85, 86, 87, 90, 91, 92, 95, 96, 97, 100, 101, 102, 105, 106, 107, 110, 111
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 1,3
|
|
|
COMMENTS
| Also the only numbers that are eligible to be the sum of two 4th powers. - Cino Hilliard, Nov 23, 2003
|
|
|
LINKS
| Index to sequences with linear recurrences with constant coefficients, signature (1,0,1,-1).
|
|
|
FORMULA
| a(n+1)=Sum_k>=0 {A030341(n,k)*b(k)} with b(0)=1 and b(k)=5*3^(k-1) for k>0. - From DELEHAM Philippe, Oct 22 2011.
|
|
|
MATHEMATICA
| Select[Range[0, 120], MemberQ[{0, 1, 2}, Mod[#, 5]]&] (* From Harvey P. Dale, Jan 20 2012 *)
|
|
|
PROG
| (PARI) a(n)=n--\3*5+n%3 \\ Charles R Greathouse IV, Oct 22 2011
|
|
|
CROSSREFS
| Sequence in context: A057694 A049303 A177987 * A039015 A037453 A014528
Adjacent sequences: A047214 A047215 A047216 * A047218 A047219 A047220
|
|
|
KEYWORD
| nonn,easy
|
|
|
AUTHOR
| N. J. A. Sloane (njas(AT)research.att.com).
|
| |
|
|