public static int[] getTriplets(int number) {
		// TODO Auto-generated method stub
		int[] triplets = new int[3];
		for(int c = number;c>0;c--){
			for(int b = c-1;b>0;b--){
				for(int a = b-1;a>0;a--)
				{
					if(((a+b+c)==number) && (a*a)+(b*b)-(c*c)==0){
						triplets[0]=a;
						triplets[1]=b;
						triplets[2]=c;
					}
				}
			}
		}
		return triplets;
	}