login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A098762 This sequence, the sequence of first differences and the sequence of partial sums, are disjoint; a(0) = 1. 2
1, 3, 8, 14, 21, 30, 40, 52, 65, 80, 96, 113, 131, 150, 170, 193, 217, 242, 268, 295, 323, 352, 383, 415, 448, 482, 518, 555, 593, 632, 673, 715, 758, 802, 847, 893, 940, 988, 1037, 1087, 1140, 1194, 1249, 1306, 1362, 1420, 1479, 1539, 1600, 1662, 1725, 1789 (list; graph; refs; listen; history; internal format)
OFFSET

0,2

EXAMPLE

If first row gives the sums and the third row the differences, then:

.4 11 22 35 51 70 92 117 145

1 3 8 14 21 30 40 52 65 80 ... [this sequence]

.2 5 6 7 9 10 12 13 15

PROG

;; PLT DrScheme - Joshua Zucker (joshua.zucker(AT)stanfordalumni.org), Jul 27 2006

(define (element? item a-list)

(ormap (lambda (i) (equal? item i)) a-list))

(define (A098762 n seq bad ops)

(local ((define newbads (map (lambda (op) (op n (first seq))) ops))

(define (ok? n)

(and (not (element? n bad))

(not (ormap (lambda (x) (element? x bad)) newbads))

(not (ormap (lambda (x) (element? x seq)) newbads)))))

(cond

[(> n 10000) (reverse seq)]

[(ok? n) (A098762 (add1 n) (cons n seq) (append newbads bad) ops)]

[else (A098762 (add1 n) seq bad ops)])))

(A098762 2 (list 1) empty (list + -))

CROSSREFS

Cf. A098763.

Sequence in context: A063617 A062550 A022947 * A014848 A140479 A146158

Adjacent sequences:  A098759 A098760 A098761 * A098763 A098764 A098765

KEYWORD

easy,nonn

AUTHOR

Eric Angelini (eric.angelini(AT)kntv.be), Oct 01 2004

EXTENSIONS

Better definition from Joshua Zucker (joshua.zucker(AT)stanfordalumni.org), Jul 27 2006

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 14 15:39 EST 2012. Contains 205635 sequences.