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!)
A256915 Length of the enhanced squares representation of n. 4
1, 1, 1, 1, 1, 2, 2, 2, 3, 1, 2, 2, 2, 2, 3, 3, 1, 2, 2, 2, 2, 3, 3, 3, 4, 1, 2, 2, 2, 2, 3, 3, 3, 4, 2, 3, 1, 2, 2, 2, 2, 3, 3, 3, 4, 2, 3, 3, 3, 1, 2, 2, 2, 2, 3, 3, 3, 4, 2, 3, 3, 3, 3, 4, 1, 2, 2, 2, 2, 3, 3, 3, 4, 2, 3, 3, 3, 3, 4, 4, 2, 1, 2, 2, 2, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,6
COMMENTS
See A256913 for definitions.
LINKS
EXAMPLE
R(0) = 0, so length = 1.
R(1) = 1, so length = 1.
R(8) = 4 + 3 + 1, so length = 3.
R(7224) = 7056 + 144 + 16 + 4 + 3 + 1, so length = 6.
MATHEMATICA
b[n_] := n^2; bb = Insert[Table[b[n], {n, 0, 100}] , 2, 3];
s[n_] := Table[b[n], {k, 1, 2 n + 1}];
h[1] = {0, 1, 2, 3}; h[n_] := Join[h[n - 1], s[n]];
g = h[100]; Take[g, 100]
r[0] = {0}; r[1] = {1}; r[2] = {2}; r[3] = {3}; r[8] = {4, 3, 1};
r[n_] := If[MemberQ[bb, n], {n}, Join[{g[[n]]}, r[n - g[[n]]]]];
t = Table[r[n], {n, 0, 120}] (* A256913, before concatenation *)
Flatten[t] (* A256913 *)
Table[Last[r[n]], {n, 0, 120}] (* A256914 *)
Table[Length[r[n]], {n, 0, 200}] (* A256915 *)
PROG
(Haskell)
a256915 = length . a256913_row -- Reinhard Zumkeller, Apr 15 2015
CROSSREFS
Cf. A000290, A256913, A256914 (trace).
Cf. A257071.
Sequence in context: A139465 A010244 A141298 * A348367 A209254 A227738
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Apr 14 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 24 00:30 EDT 2024. Contains 371917 sequences. (Running on oeis4.)