A118413
Triangle read by rows: T(n,k) = (2*n-1)*2^(k-1), 0
1, 3, 6, 5, 10, 20, 7, 14, 28, 56, 9, 18, 36, 72, 144, 11, 22, 44, 88, 176, 352, 13, 26, 52, 104, 208, 416, 832, 15, 30, 60, 120, 240, 480, 960, 1920, 17, 34, 68, 136, 272, 544, 1088, 2176, 4352, 19, 38, 76, 152, 304, 608, 1216, 2432, 4864, 9728, 21, 42, 84, 168
Offset: 1
Examples
1 3 6 5 10 20 7 14 28 56 9 18 36 72 144 11 22 44 88 176 352 13 26 52 104 208 416 832 15 30 60 120 240 480 960 1920 17 34 68 136 272 544 1088 2176 4352 19 38 76 152 304 608 1216 2432 4864 9728 ...
Crossrefs
Programs
-
Mathematica
Select[Flatten[Table[(2n-1)2^(k-1),{n,20},{k,0,n}]],IntegerQ] (* Harvey P. Dale, Jan 17 2024 *)
-
Python
from math import isqrt, comb def A118413(n): a = (m:=isqrt(k:=n<<1))+(k>m*(m+1)) return ((a<<1)-1)<
Chai Wah Wu, Jun 20 2025
Comments