Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
A257255
Square array A(row,col) = A255545(row,col+1) - A255545(row,col): the first differences of each row of Lucky-Unlucky array.
4
1, 2, 2, 2, 6, 12, 2, 6, 20, 18, 2, 6, 22, 30, 32, 2, 6, 20, 34, 52, 40, 2, 6, 22, 30, 50, 62, 64, 2, 6, 20, 32, 52, 64, 92, 84, 2, 6, 22, 30, 54, 62, 100, 116, 108, 2, 6, 20, 34, 48, 72, 92, 120, 156, 124, 2, 6, 22, 30, 50, 64, 102, 120, 152, 168, 138, 2, 6, 20, 32, 52, 62, 96, 124, 156, 168, 206, 170
OFFSET
1,2
COMMENTS
The array A(row,col) is read by downwards antidiagonals as A(1,1), A(1,2), A(2,1), A(1,3), A(2,2), A(3,1), ...
FORMULA
A(row,col) = A255545(row,col+1) - A255545(row,col).
EXAMPLE
The top left corner of the array:
1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2
2, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6
12, 20, 22, 20, 22, 20, 22, 20, 22, 20, 22, 20, 22, 20, 22
18, 30, 34, 30, 32, 30, 34, 30, 32, 30, 34, 30, 32, 30, 34
32, 52, 50, 52, 54, 48, 50, 52, 50, 54, 48, 54, 52, 48, 54
40, 62, 64, 62, 72, 64, 62, 64, 66, 62, 64, 62, 66, 64, 62
64, 92, 100, 92, 102, 96, 96, 94, 96, 96, 96, 96, 98, 94, 98
84, 116, 120, 120, 124, 116, 124, 116, 118, 122, 120, 118, 126, 120, 120
108, 156, 152, 156, 162, 148, 162, 152, 150, 160, 152, 154, 156, 156, 158
124, 168, 168, 174, 168, 164, 178, 170, 166, 174, 174, 168, 176, 162, 168
138, 206, 192, 198, 198, 190, 200, 202, 192, 200, 190, 198, 200, 192, 208
170, 232, 236, 238, 230, 244, 230, 240, 226, 242, 238, 234, 230, 246, 222
206, 270, 274, 278, 268, 272, 280, 278, 268, 276, 276, 282, 266, 270, 286
214, 284, 300, 286, 302, 288, 292, 288, 290, 294, 292, 290, 298, 284, 300
274, 366, 356, 390, 358, 372, 354, 374, 378, 360, 360, 376, 366, 372, 366
296, 384, 418, 392, 400, 396, 398, 390, 396, 402, 394, 402, 398, 400, 392
...
PROG
(Scheme)
(define (A257255 n) (A257255bi (A002260 n) (A004736 n)))
(define (A257255bi row col) (- (A255545bi row (+ 1 col)) (A255545bi row col))) ;; Code for A255545bi given in A255545.
CROSSREFS
Column 1: A257256.
Cf. A255545.
Cf. also arrays A257251 and A257257.
Sequence in context: A227847 A058756 A237614 * A248765 A007039 A025248
KEYWORD
nonn,tabl
AUTHOR
Antti Karttunen, Apr 19 2015
STATUS
approved