login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A126081
a(n) = number of k, 1 <= k <= n, such that k divides ceiling(n/k).
0
1, 1, 2, 2, 1, 1, 3, 3, 2, 1, 2, 2, 2, 2, 3, 4, 2, 2, 2, 2, 2, 2, 3, 3, 3, 2, 3, 2, 2, 2, 4, 4, 2, 3, 4, 4, 1, 1, 2, 2, 1, 1, 4, 4, 4, 4, 5, 5, 3, 2, 2, 3, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 5, 4, 1, 1, 3, 3, 2, 3, 5, 5, 3, 3, 4, 3, 3, 3, 5, 5, 3, 1, 2, 2, 1, 1, 2, 3, 2, 2, 3, 4, 4, 4, 5, 6, 5, 5, 5, 4, 1, 1, 3, 3, 2
OFFSET
1,3
EXAMPLE
Ceiling(n/k) for n = 7 is: k=1: 7; k=2: 4; k=3: 3; k=4: 2; k=5: 2; k=6: 2; k=7: 1. 1 divides 7, 2 divides 4, 3 divides 3; so a(7) = 3.
MAPLE
a:=proc(n) local ct, k: ct:=0: for k from 1 to n do if type(ceil(n/k)/k, integer)=true then ct:=ct+1 else ct:=ct fi od: ct; end: seq(a(n), n=1..130); # Emeric Deutsch, Mar 28 2007
MATHEMATICA
Table[c=0; Do[If[Divisible[Ceiling[n/k], k], c++], {k, n}]; c, {n, 105}] (* James C. McMahon, Dec 24 2024 *)
CROSSREFS
Cf. A066030.
Sequence in context: A155092 A095133 A334572 * A268507 A272351 A243612
KEYWORD
nonn,changed
AUTHOR
Leroy Quet, Mar 02 2007
EXTENSIONS
More terms from Emeric Deutsch, Mar 28 2007
STATUS
approved