[go: up one dir, main page]

login
a(n) = A256966(n) + 1.
3

%I #16 Apr 20 2015 20:58:39

%S 1,2,4,7,10,14,18,22,27,32,37,42,47,53,59,65,71,77,83,89,95,102,109,

%T 116,123,130,137,144,151,158,165,172,179,186,194,202,210,218,226,234,

%U 242,250,258,266,274,282,290,298,306,314,322,330

%N a(n) = A256966(n) + 1.

%H Chai Wah Wu, <a href="/A256967/b256967.txt">Table of n, a(n) for n = 1..10000</a>

%H Popular Computing (Calabasas, CA), <a href="/A256967/a256967.png">A Coding Exercise (from a suggestion by R. W. Hamming)</a>, Vol. 5 (No. 54, Sep 1977), p. PC55-18. [Asks what is a(n)?]

%o (Python)

%o A256967_list, x, d, f1, f2 = [], 1, 1, 1, 0

%o for _ in range(20):

%o ....for i in range(f1):

%o ........A256967_list.append(x)

%o ........x += d

%o ....d += 1

%o ....f1, f2 = f1 + f2, f1

%o # _Chai Wah Wu_, Apr 19 2015

%Y Cf. A072649, A256966.

%K nonn

%O 1,2

%A _N. J. A. Sloane_, Apr 16 2015