OFFSET
1,3
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..3326
Frankie Mennicucci, On the Number of Strong Dominating Sets in a Graph, Master's Thesis, Montclair State Univ. (2024). See p. 17.
MAPLE
s := proc(n) option remember; `if`(n < 1, 0, a(n) + s(n - 1)) end proc:
a := proc(n) option remember;
`if`(n < 4, [1, 1, 3][n], s(n - 1) - a(2^ceil(log[2](n - 1)) + 2 - n)):
end proc:
seq(a(n), n = 1..34); # Petros Hadjicostas, Nov 11 2019
MATHEMATICA
nn = 36; a[1] = a[2] = 1; a[3] = 3; s = 5; Do[Set[k, s - a[2^(Ceiling@ Log2[n - 1]) + 2 - n]]; a[n] = k; s += k, {n, 4, nn}]; Array[a, nn] (* Michael De Vlieger, Oct 21 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Name edited by Petros Hadjicostas, Nov 11 2019
More terms from Michael De Vlieger, Oct 21 2024
STATUS
approved
