login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A250306
a(0) = 3; a(n+1) is the smallest number not in the sequence such that a(n+1) - Sum_{i=0..n} a(i) divides a(n+1) + Sum_{i=0..n} a(i).
1
3, 1, 2, 4, 5, 9, 8, 16, 24, 36, 54, 81, 162, 135, 180, 240, 320, 640, 960, 1440, 2160, 3240, 4860, 7290, 10935, 19683, 17496, 23328, 31104, 41472, 55296, 73728, 98304, 131072, 262144, 393216, 589824, 884736, 1327104, 1990656, 2985984, 4478976, 6718464
OFFSET
0,1
PROG
(PARI) v=[3]; print1(3, ", "); n=1; while(n<10^4, if((V=vecsum(v))!=n&&(V+n)\(n-V)==(V+n)/(n-V)&&!vecsearch(vecsort(v), n), v=concat(v, n); print1(n, ", "); n=0); n++)
CROSSREFS
Cf. A250305.
Sequence in context: A230448 A201653 A230765 * A120577 A104695 A233904
KEYWORD
nonn
AUTHOR
Derek Orr, Jan 15 2015
STATUS
approved