|
| |
|
|
A122798
|
|
A P_5-stuttered arithmetic progression with a(n+1) = a(n) if n is a pentagonal number, a(n+1) = a(n)+4 otherwise.
|
|
7
|
|
|
|
1, 1, 5, 9, 13, 13, 17, 21, 25, 29, 33, 37, 37, 41, 45, 49, 53, 57, 61, 65, 69, 73, 73, 77, 81, 85, 89, 93, 97, 101, 105, 109, 113, 117, 121, 121, 125, 129, 133, 137, 141, 145, 149, 153, 157, 161, 165, 169, 173, 177, 181, 181, 185, 189, 193, 197, 201, 205, 209
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
|
OFFSET
|
1,3
|
|
|
COMMENTS
|
P_5(i) = the i-th pentagonal number.
|
|
|
REFERENCES
|
G. D. Bullington, The Connell Sum Sequence, J. Integer Seq. 10 (2007), Article 07.2.6. (includes direct formula for a(n))
D. Iannucci and D. Mills-Taylor, On Generalizing the Connell Sequence, Journal of Integer Sequences v.2 (1999) Article 99.1.7.
|
|
|
LINKS
|
Table of n, a(n) for n=1..59.
|
|
|
FORMULA
|
a(n) = A045929(n) - n + 1.
|
|
|
PROG
|
(PARI) isPentag(n) = {if (! issquare(24*n+1, &res), return (0)); if ( (res + 1) % 6, return (0), return (1)); }
lista(m) = {aa = 1; for (i=1, m, print1(aa, ", "); if (! isPentag(i), aa += 4); ); } \\ Michel Marcus, Apr 01 2013
|
|
|
CROSSREFS
|
Cf. A001614, A122793, A122794, A122795, A122796, A122797, A122799, A122800.
Sequence in context: A080781 A079357 A080455 * A189464 A130333 A080579
Adjacent sequences: A122795 A122796 A122797 * A122799 A122800 A122801
|
|
|
KEYWORD
|
nonn,easy
|
|
|
AUTHOR
|
Grady Bullington (bullingt(AT)uwosh.edu), Sep 14 2006
|
|
|
EXTENSIONS
|
Definition corrected by Michel Marcus, Apr 01 2013
|
|
|
STATUS
|
approved
|
| |
|
|