As a result of digital competence becoming increasingly important in society in recent years, programming and computational thinking was introduced in school education in a number of countries. In Sweden, programming was integrated into mathematics education in 2018, both in compulsory school and upper secondary school. In upper secondary school, the intention with programming in mathematics is that the students should learn to use programming as a strategy in problem-solving situations. The overall purpose of this research project is to contribute to the research on the ongoing integration of programming in upper secondary school mathematics, by examining in what ways programming can offer opportunities for learning in mathematics compared to a more traditional teaching. The project is carried out in collaboration between the University of Gothenburg and Hvitfeldtska Gymnasiet, and consists of three sub-studies: a survey of current practice and research in the field; development and evaluation of teaching materials and training materials; as well as studies of how students' knowledge of mathematics can be developed through programming elements in mathematics teaching.