A262617 First differences of A256266.
0, 6, 12, 6, 24, 18, 12, 6, 48, 42, 36, 30, 24, 18, 12, 6, 96, 90, 84, 78, 72, 66, 60, 54, 48, 42, 36, 30, 24, 18, 12, 6, 192, 186, 180, 174, 168, 162, 156, 150, 144, 138, 132, 126, 120, 114, 108, 102, 96, 90, 84, 78, 72, 66, 60, 54, 48, 42, 36, 30, 24, 18, 12, 6, 384, 378, 372, 366, 360, 354, 348, 342, 336, 330, 324, 318
Offset: 0
Examples
With the terms written as an irregular triangle in which the row lengths are the terms of A011782 the sequence begins: 0; 6; 12, 6; 24, 18, 12, 6; 48, 42, 36, 30, 24, 18, 12, 6; 96, 90, 84, 78, 72, 66, 60, 54, 48, 42, 36, 30, 24, 18, 12, 6; ... Apart from the initial zero the rows list the initial terms of the positive multiples of 6 in decreasing order.
Links
Programs
-
PARI
a(n) = if(n==0, 0, -6*n+12*2^floor(log(n)/log(2))); vector(100, n, a(n-1)) \\ Altug Alkan, Oct 04 2015
Formula
a(n) = 6 * A080079(n), n >= 1.
Comments