The purpose of this qualitative study is to show the relationships between mathematics and programming and to investigate what opportunities experienced teachers perceive with programming within the subject of mathematics. We have collected empirical material to achieve the aim by interviewing four experienced and qualified teachers in mathematics and programming. The empirical data was analyzed using the TPACK framework. The result showed that the teachers see several connections between programming and mathematics, where algebra including patterns and step-by-step instructions is the most distinctive. One conclusion is that a multimodal teaching gives the teacher opportunities to let the students consolidate both programming and mathematics skills in a fundamental way.