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”).

A283778
Numbers k such that floor(k*e) is odd.
2
2, 5, 7, 8, 10, 11, 13, 16, 19, 21, 22, 24, 25, 27, 30, 33, 35, 36, 38, 41, 44, 46, 47, 49, 50, 52, 55, 58, 60, 61, 63, 64, 66, 69, 72, 74, 75, 77, 80, 83, 85, 86, 88, 89, 91, 94, 97, 99, 100, 102, 103, 105, 108, 110, 111, 113, 114, 116, 119, 122, 124, 125
OFFSET
1,1
COMMENTS
Complement of A283777.
LINKS
FORMULA
a(n+1) - a(n) is in {1,2,3} for every n.
MATHEMATICA
r = E; z = 350; t = Table[Floor[n*r], {n, 1, z}]; u = Mod[t, 2];
Flatten[Position[u, 0]] (* A283777 *)
Flatten[Position[u, 1]] (* A283778 *)
PROG
(PARI) for(n=1, 125, if(floor(n*exp(1))%2==1, print1(n, ", "))) \\ Indranil Ghosh, Mar 21 2017
(Python)
from mpmath import *
import math
mp.dps=100
print([n for n in range(1, 126) if int(math.floor(n*e))%2==1]) # Indranil Ghosh, Mar 21 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Mar 19 2017
STATUS
approved