This work has the goal to reduce the conceptual and operational deficiencies in basic mathematics in students entering to "Tecnologico de Monterrey". The work has been developed in two phases. In the first one, a semi-adaptive test was applied to 212 freshmen students in order to determine the deficiencies of students and to evaluate the statistical quality of test. On the second phase, a MOOC in the Open-EdX platform was built. This course is characterized by its modularity and flexibility, it contains five modules, namely: Algebra I, Algebra II, Trigonometry, Analytical Geometry and Functions. Each one of them is organized in small sections that contain the following sections: basic theory, examples, interactive exercises, computational exploration of concepts and evaluation activity. After that, the impact on 340 students was studied. The students performed several activities and were evaluated through another semi-adaptive system based on free response and multiple-choice questions. The results were compared with those obtained by students that had taken the conventional course. The work describes the methodology followed in the development of the course, some of its base elements and some results obtained in the modular diagnostic test are shown.