%I #10 Jan 03 2022 02:07:13
%S 1,2,3,5,6,8,10,16,17,18,19,22,25,26,29,32,33,37,40,41,43,45,47,48,50,
%T 54,55,57,59,62,66,67,68,69,73,75,76,77,81,83,85,86,87,95,98,99,101,
%U 105,109,117,118,120,126,128,129,131,133,134,137,139,140,141,143,146,148
%N a(1)=1, a(2)=2, a(n)=smallest number greater than a(n-1) that can be written as sum of consecutive earlier terms in exactly one way.
%C This sequence is similar to the Hofstadter sequence A005243 except the decomposition into summands has to be unique.
%C This sequence has similarities with Ulam numbers (A002858); here we consider unique sums of consecutive terms, there unique sums of two distinct terms. - _Rémy Sigrist_, Jan 02 2022
%H Charles R Greathouse IV, <a href="/A124145/b124145.txt">Table of n, a(n) for n = 1..1000</a>
%H Rémy Sigrist, <a href="/A124145/a124145.gp.txt">PARI program for A124145</a>
%e a(7)=10 because 2+3+5=10 is the only way to sum up consecutive terms. 11 is not contained in the sequence because 11=5+6=1+2+3+5 has got more than one decompositions.
%o (PARI) See Links section.
%Y Cf. A002858, A005243, A118065, A118164, A118166.
%K easy,nonn
%O 1,2
%A Tobias Baumann (baumtobi(AT)students.uni-mainz.de), Dec 01 2006