A307405 Base-5 based twisted permutation of the nonnegative integers - variant "Ls".
0, 1, 2, 3, 4, 9, 8, 7, 6, 5, 10, 15, 20, 21, 16, 11, 12, 17, 22, 23, 18, 13, 14, 19, 24, 49, 44, 39, 38, 43, 48, 47, 42, 37, 36, 41, 46, 45, 40, 35, 30, 31, 32, 33, 34, 29, 28, 27, 26, 25, 50, 75, 100, 101, 76, 51, 52, 77, 102, 103, 78, 53
Offset: 0
Examples
In base-5, the terms for the path in two dimensions are 0, 1, 2, 3, 4, 14, 13, 12, 11, 10, 20, 30, 40, 41, 31, 21, 22, 32, 42, 43, 33, 23, 24, 34, 44.
Links
- Georg Fischer, Repository of programs for related sequences, (gen_paths.pl)
Crossrefs
Programs
-
Perl
cf. link.
Comments