function [ i ] = state_i( state,m )
    i = floor((state-1) / m) + 1;
end

