#include #define largo 1187 #define A (sqrt(5)-1)/2 int hash(int k, int m) // Si llega a funcionar es milagro! { int h1;float h2; h1=k%largo; h2=(float)((k+m)*A)-(int)((k+m)*A); return((h1+(int)(h2*(largo+m)))%largo); }