So I've got this Computer Science course in my high school (it's for the people like me who are decently good at computer science). Now the project we are working on is a Java program to convert a decimal (base-ten) number into a maya numeral, which is base twenty. I am aware, that maya numerals dont even use the same digits for numbers as western-arabic numbers, which why digits are going to be seperated by spaces so numbers bigger than 9 can be represented as "single digits" (e.g. instead of writing "11", we would write "1 1". Does anyone know algorithm or even pseudo-code which could do something like this?

Look at how to convert between base 10 to octal (base 8) Apply that to base 20, also have you gone on stack exchange? Some one has had this problem before you.

Holy crap thank you so much. I didnt think it would be this easy!