cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A198387 Common differences in triples of squares in arithmetic progression.

Original entry on oeis.org

24, 96, 120, 216, 240, 384, 336, 480, 600, 840, 864, 960, 840, 1176, 720, 1080, 1536, 1344, 1944, 1920, 2160, 2400, 1320, 2520, 2904, 2016, 3360, 3456, 3000, 3696, 4056, 3840, 3024, 3360, 2184, 4704, 2880, 4320, 5280, 5400, 6144, 5544, 6000, 6936, 6240, 5880
Offset: 1

Views

Author

Reinhard Zumkeller, Oct 24 2011

Keywords

Programs

  • Haskell
    a198387 n = a198387_list !! (n-1)
    a198387_list = zipWith (-) a198385_list a198384_list
  • Mathematica
    wmax = 1000;
    triples[w_] := Reap[Module[{u, v}, For[u = 1, u < w, u++, If[IntegerQ[v = Sqrt[(u^2 + w^2)/2]], Sow[{u^2, v^2, w^2}]]]]][[2]];
    #[[2]] - #[[1]]& /@ Flatten[DeleteCases[triples /@ Range[wmax], {}] , 2] (* Jean-François Alcover, Oct 21 2021 *)

Formula

a(n) = A198385(n) - A198384(n) = A198386(n) - A198385(n).
A198438(n) = a(A198409(n)).