Combination of 5 beads same color =RRRRR,BBBBB,GGGGG
4 same colors = RRRRB ,RRRRG (similarly Blue and green colors ) =(5!/4! +5!/4!) ⨉3
3 same colors =RRRGB, RRRGG,RRRBB (Similarly other colors)=(5!/3! + 5!/3!2! + 5!/3!2!)⨉3
2 -2 same color , RRBBG, RRGGB, BBGGR =5!/2!2! ⨉3
Adding all we get answer 273