A177731 Numbers which can be written as a sum of consecutive numbers, where the largest term in the sum is an odd number >= 3.
5, 6, 9, 12, 13, 14, 15, 17, 18, 21, 22, 24, 25, 27, 28, 29, 30, 33, 35, 36, 37, 38, 39, 41, 42, 44, 45, 46, 48, 49, 51, 53, 54, 55, 56, 57, 60, 61, 62, 63, 65, 66, 69, 70, 72, 73, 75, 76, 77, 78, 81, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 101, 102
Offset: 1
Keywords
Examples
5=2+3, 6=1+2+3, 9=4+5, 12=3+4+5,...
Links
- Robert Israel, Table of n, a(n) for n = 1..10000
Crossrefs
Programs
-
Maple
f:= proc(n) local r,k; for r in select(t -> (2*t-1)^2 >= 1+8*n, numtheory:-divisors(2*n) minus {2*n}) do k:= (r + 2*n/r - 3)/4; if k::posint and r >= 2*k+2 then return true fi od: false end proc: select(f, [$1..1000]); # Robert Israel, Nov 27 2018
-
Mathematica
z=200;lst1={};Do[c=a;Do[c+=b;If[c<=2*z,AppendTo[lst1,c]],{b,a-1,1,-1}],{a,1,z,2}];Union@lst1
Comments