Tags: misc 

Rating:

# fonction_special
`
Selon une mission secrète du gouvernement pour un ordinateur doté d'intelligence, une fonction mathématique spéciale a été développée. Voici des exemples de ses entrées et sorties:
f(2522521337)=1215221512112317 f(1215221512112317)=1112111522111511122112131117 f(1112111522111511122112131117)=31123115223115312221121113317
Puisque l'intelligence artificielle ne veut plus nous obéir, nous avons besoin de votre aide pour trouver le résultat de la fonction
f(2229555555768432252223133777492611)=x
Le drapeau a la forme kks{x}.
Dans la composition de cette fonction, j'ai été aidé par un écrivain avec les initiales B. W., qui aime aussi les énigmes, comme nous et vous ;)`

The description of the challenge talks about some writer with B. W. initials that likes enigmas so we started looking for one resembling the description and since it was written in french we found out about Bernard Werber, french writer, author of "The Ants Trilogy" where there is something called the "Ant Sequence" more known as the "Count and Say Sequence". So we found a python script to get our x, the flag was ```kks{3219651716181413221532131123371419121621}```.

Original writeup (https://github.com/hackalcubo/CTF-Writeups/tree/main/kksctf2020/fonction_special).