login
A283777
Numbers k such that floor(k*e) is even.
2
1, 3, 4, 6, 9, 12, 14, 15, 17, 18, 20, 23, 26, 28, 29, 31, 32, 34, 37, 39, 40, 42, 43, 45, 48, 51, 53, 54, 56, 57, 59, 62, 65, 67, 68, 70, 71, 73, 76, 78, 79, 81, 82, 84, 87, 90, 92, 93, 95, 96, 98, 101, 104, 106, 107, 109, 112, 115, 117, 118, 120, 121, 123
OFFSET
1,2
COMMENTS
Complement of A283778.
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==0, 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==0]) # Indranil Ghosh, Mar 21 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Mar 19 2017
STATUS
approved