OFFSET
2,1
FORMULA
EXAMPLE
a(4) = 8 since p(4) of A054065 = 2 4 1 3. Placing the terms in circular fashion and taking absolute differences: 2, 3, 2, 1; sum = 8.
CROSSREFS
KEYWORD
nonn
AUTHOR
Gary W. Adamson, Oct 31 2004
EXTENSIONS
Edited and extended by Ray Chandler, Apr 18 2009
STATUS
approved