If three successive terms of G.P. with common ratio \( r\,(r>1) \) are the lengths of the sides of a triangle and \( [r] \) denotes the greatest integer less than or equal to \( r \), then \( 3[r]+[-r] \) is equal to __________.