login
Integers of the form 2*x + 3*y with nonnegative x and y, with repetitions.
1

%I #11 Apr 08 2018 09:19:45

%S 0,2,3,4,5,6,6,7,8,8,9,9,10,10,11,11,12,12,12,13,13,14,14,14,15,15,15,

%T 16,16,16,17,17,17,18,18,18,18,19,19,19,20,20,20,20,21,21,21,21,22,22,

%U 22,22,23,23,23,23,24,24,24,24,24,25,25,25,25,26,26,26

%N Integers of the form 2*x + 3*y with nonnegative x and y, with repetitions.

%C Not A086419: A086419(n)-a(n)={0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 0, 0, 1, -1, 0, 0, 0, 1, -1, 0, 0, 1, -1, 0, 0}.

%C First differences occur at n = {48, 49, 56, 57, 61, 62, 65, 66}.

%H G. C. Greubel, <a href="/A216522/b216522.txt">Table of n, a(n) for n = 0..20000</a>

%t Sort[Flatten[Table[2*x+3*y,{x,0,100},{y,0,(100-2x)/3}]]]

%Y Cf. A086419.

%K nonn

%O 0,2

%A _Zak Seidov_, Sep 08 2012