login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A278169 Characteristic function for A000960. 7
1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET

1

LINKS

Antti Karttunen, Table of n, a(n) for n = 1..9889

Index entries for characteristic functions

FORMULA

a(1) = 1; for n > 1, a(n) = A100617(n) - A100617(n-1).

MATHEMATICA

b[n_] := (For[m = n; i = 1, i <= n-1, i++, d = n-i; m = d*Ceiling[m/d+1]]; m); A000960 = Array[b, 12]; Boole[MemberQ[A000960, #]]& /@ Range[A000960 // Last] (* Jean-Fran├žois Alcover, Nov 24 2016 *)

PROG

(Scheme) (define (A278169 n) (if (= 1 n) n (- (A100617 n) (A100617 (- n 1)))))

CROSSREFS

Characteristic function of A000960.

Cf. A100617 (partial sums).

Sequence in context: A321692 A102242 A005369 * A262693 A267423 A108340

Adjacent sequences:  A278166 A278167 A278168 * A278170 A278171 A278172

KEYWORD

nonn

AUTHOR

Antti Karttunen, Nov 23 2016

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 22 13:47 EST 2019. Contains 329393 sequences. (Running on oeis4.)