login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A256697 Trace of the minimal alternating triangular-number representation of n. 3
0, 1, -1, 3, 1, -1, 6, -3, 1, -1, 10, -1, -3, 1, -1, 15, 1, -1, -3, 1, -1, 21, -6, 1, -1, -3, 1, -1, 28, 3, -6, 1, -1, -3, 1, -1, 36, -1, 3, -6, 1, -1, -3, 1, -1, 45, 1, -1, 3, -6, 1, -1, -3, 1, -1, 55, -10, 1, -1, 3, -6, 1, -1, -3, 1, -1, 66, 1, -10, 1, -1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
COMMENTS
See A255974 for definitions.
REFERENCES
0
LINKS
EXAMPLE
R(0) = 0; trace = 0
R(1) = 1; trace = 1
R(2) = 3 - 1; trace = -1
R(3) = 3; trace = 3
R(4) = 6 - 3 + 1; trace = 1
R(5) = 6 - 1; trace = -1
R(8) = 10 - 3 + 1; trace = 1
R(11) = 15 - 6 + 3 - 1; trace = -1
MATHEMATICA
b[n_] := n (n + 1)/2; bb = Table[b[n], {n, 0, 1000}];
s[n_] := Table[b[n], {k, 1, n}];
h[1] = {1}; h[n_] := Join[h[n - 1], s[n]];
g = h[100]; r[0] = {0};
r[n_] := If[MemberQ[bb, n], {n}, Join[{g[[n]]}, -r[g[[n]] - n]]]
t = Table[r[n], {n, 0, 120}] (* A255974 representations *)
t = Table[Last[r[n]], {n, 0, 120}] (* A256697 *)
CROSSREFS
Sequence in context: A061857 A275464 A067433 * A133567 A271665 A184049
KEYWORD
easy,sign
AUTHOR
Clark Kimberling, Apr 11 2015
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 18:22 EDT 2024. Contains 371750 sequences. (Running on oeis4.)