A224985 Floor of the Euclidean distance of a point on the (1, 1, 1; 2, 2, 2) 3D walk.
0, 1, 1, 1, 3, 4, 5, 7, 9, 10, 13, 15, 17, 20, 23, 25, 29, 33, 36, 40, 44, 48, 53, 58, 62, 67, 73, 77, 84, 89, 95, 102, 108, 114, 121, 128, 135, 143, 150, 157, 166, 174, 181, 190, 199, 207, 217, 226, 235, 245, 255, 265, 275, 286, 296, 307, 318, 329, 341, 352, 363, 376
Offset: 0
Keywords
Programs
-
JavaScript
p = new Array(0, 0, 0); for (a = 1; a < 100; a++) { p[a % 3] += Math.ceil(a/3); document.write(Math.floor(Math.sqrt(p[0] * p[0] + p[1] * p[1] + p[2] * p[2])) + ", "); }
Comments