OFFSET
0,4
COMMENTS
The iteration that leads to this sequence is worthy of consideration for the grade 2 classroom learning addition.
a(2^k)=1 for all nonnegative integers k as can be seen from A138591.
LINKS
Martin Büttner, Table of n, a(n) for n = 0..10000
EXAMPLE
a(23) = 23 because there are 23 numbers generated by the iteration:
23
/\
/ \
/ \
/ \
/ \
/ \
/ \
11 12
/\ /|\
/ \ / | \
/ \ / | \
/ \ 3 4 5
/ \ / \ / \
5 6 1 2 2 3
/ \ /|\ / \
2 3 / | \ 1 2
/ \ / | \
1 2 1 2 3
/ \
1 2
a(24) = 13 because there are 13 numbers generated by the iteration:
24
/|\
/ | \
/ | \
7 8 9
/ \ /|\
3 4 / | \
/ \ / | \
1 2 2 3 4
/ \
1 2
MATHEMATICA
fission[0] = 0;
fission[n_] := fission@n = Module[{div = SelectFirst[Reverse@Divisors[2 n], (OddQ@# == IntegerQ[n/#] && n/# > (# - 1)/2) &]}, If[div == 1, 1, 1 + Total[fission /@ (Range@div + n/div - (div + 1)/2)]]];
fission /@ Range[0, 100] (* Martin Büttner, Jun 04 2015 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Gordon Hamilton, Mar 31 2015
EXTENSIONS
Corrected and extended by Martin Büttner, Jun 04 2015
STATUS
approved