A307048 Permutation of the positive integers derived from the terms of A322469 having the form 6*k - 2.
2, 1, 6, 5, 10, 4, 14, 7, 18, 13, 22, 8, 26, 3, 30, 21, 34, 12, 38, 9, 42, 29, 46, 16, 50, 23, 54, 37, 58, 20, 62, 19, 66, 45, 70, 24, 74, 17, 78, 53, 82, 28, 86, 39, 90, 61, 94, 32, 98, 15, 102, 69, 106, 36, 110, 25, 114, 77, 118, 40, 122, 55
Offset: 1
Examples
Table U(i, j) begins: i\j 1 2 3 4 5 6 7 ------------------------- 1: 4: 2 7: 1 10: 13: 6 16: 5 19: 22: 10 25: 4 28: 31: 14 ----- T(4, 3) = 10 = 6*2 - 2, therefore U(4, 3) = 2. T(7, 6) = 4 = 6*1 - 2, therefore U(7, 6) = 1.
Programs
-
Perl
# Derived from A322469 use integer; my $n = 1; my $i = 1; my $an; while ($i <= 1000) { # next row $an = 4 * $i - 1; &term(); while ($an % 3 == 0) { $an /= 3; &term(); $an *= 2; &term(); } # while divisible by 3 $i ++; } # while next row sub term { if (($an + 2) % 6 == 0) { my $bn = ($an + 2) / 6; print "$n $bn\n"; $n ++; } }
Comments